From 9b5cb058c423699ea613b5f1a8f94d18229c7fdb Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 31 Jan 2023 05:56:49 -0500 Subject: [PATCH] feat: add LSPs --- modules/home/helix/helix.nix | 40 ++++++++++++++++++++++++++++---- modules/home/helix/languages.nix | 0 nixos/configuration.nix | 14 +++++++++-- 3 files changed, 47 insertions(+), 7 deletions(-) delete mode 100644 modules/home/helix/languages.nix diff --git a/modules/home/helix/helix.nix b/modules/home/helix/helix.nix index cb95797..5f7f324 100644 --- a/modules/home/helix/helix.nix +++ b/modules/home/helix/helix.nix @@ -1,8 +1,7 @@ -{config, pkgs, inputs, ...}: { +{pkgs, inputs, ...}: { programs.helix = { enable = true; - # langauges = import ./languages.nix args; - settings = { + settings = { theme = "catppuccin_mocha"; editor = { true-color = true; @@ -16,8 +15,39 @@ indent-guides = { render = true; rainbow = "dim"; + + languages = [ + { + name = "nix"; + auto-format = true; + } + { + name = "rust"; + } + { + name = "go"; + } + { + name = "lua"; + } + { + name = "python"; + } + { + name = "markdown"; + } + { + name = "html"; + } + { + name = "css"; + } + { + name = "yaml"; + } + ]; }; + }; }; -}; -}; + }; } \ No newline at end of file diff --git a/modules/home/helix/languages.nix b/modules/home/helix/languages.nix deleted file mode 100644 index e69de29..0000000 diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 535c9c3..3ca5bac 100755 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -174,7 +174,6 @@ environment.systemPackages = with pkgs; [ wget stow - starship rustup cargo jre @@ -183,7 +182,6 @@ nodejs polkit_gnome wireplumber - qt6.full gcc cmake libvirt @@ -191,7 +189,19 @@ python3Full python3.pkgs.pip gtk-engine-murrine + gnupg pinentry-gtk2 + + # LSPS + nil + rust-analyzer + gopls + sumneko-lua-language-server + marksman + nodePackages_latest.vscode-html-languageserver-bin + nodePackages_latest.vscode-css-languageserver-bin + nodePackages_latest.yaml-language-server + ]; fonts = {