aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/helix.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-04-06 20:08:58 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-04-06 20:39:25 +0200
commit661d4964d99a0a5cbab358643c6a271422e0d001 (patch)
tree9ebc3d6316a1333a39b9817acb3753d8cdbfff7f /share/cfg/helix.nix
parent1c716c86fd1f038e2e0a566593ba04676628b5e8 (diff)
Programming Feng Shui praxis
Diffstat (limited to 'share/cfg/helix.nix')
-rw-r--r--share/cfg/helix.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/share/cfg/helix.nix b/share/cfg/helix.nix
new file mode 100644
index 0000000..55b6f76
--- /dev/null
+++ b/share/cfg/helix.nix
@@ -0,0 +1,52 @@
+{ pkgs, ... }: {
+ programs.helix = {
+ extraPackages = with pkgs; [
+ rust-analyzer
+ rustfmt
+ nil
+ nixfmt-rfc-style
+ python311Packages.python-lsp-server
+ clang-tools
+ black
+ nodePackages.vscode-html-languageserver-bin
+ emmet-ls
+ ];
+
+ settings = {
+ theme = "tokyonight";
+ editor = {
+ line-number = "relative";
+ cursor-shape = {
+ insert = "bar";
+ normal = "block";
+ select = "underline";
+ };
+ whitespace.render = {
+ space = "all";
+ tab = "all";
+ newline = "none";
+ };
+ whitespace.characters = {
+ space = "·";
+ nbsp = "⍽";
+ tab = "→";
+ newline = "⏎";
+ tabpad = "·"; # Tabs will look like "→···" (depending on tab width)
+ };
+ cursorline = true;
+ lsp.display-messages = true;
+ };
+ };
+
+ languages = {
+ language-server.emmet-ls = {
+ args = [ "--stdio" ];
+ command = "emmet-ls";
+ };
+ language = [{
+ name = "html";
+ language-servers = [ "vscode-html-language-server" "emmet-ls" ];
+ }];
+ };
+ };
+}