diff options
Diffstat (limited to 'modules/desktop/apps')
| -rw-r--r-- | modules/desktop/apps/editors/neovim.nix | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/modules/desktop/apps/editors/neovim.nix b/modules/desktop/apps/editors/neovim.nix index 304aca7..e3bb02e 100644 --- a/modules/desktop/apps/editors/neovim.nix +++ b/modules/desktop/apps/editors/neovim.nix @@ -22,9 +22,10 @@ in { }; home.packages = [ - pkgs.clang-tools pkgs.nil pkgs.texlab + pkgs.zls + pkgs.wgsl-analyzer ]; home.manager.programs.neovim = { @@ -34,8 +35,8 @@ in { withNodeJs = true; extraConfig = '' - luafile /etc/nixos/config/nvim/lua/settings.lua - luafile /etc/nixos/config/nvim/lua/lsp.lua + luafile ~/.config/nvim/lua/settings.lua + luafile ~/.config/nvim/lua/lsp.lua ''; coc.enable = true; coc.settings = { @@ -47,6 +48,16 @@ in { "nix.enableLanguageServer" = true; "nix.serverPath" = "nil"; + + "zig.enabled" = true; + "zig.path" = "${pkgs.zls}/bin/zls"; + + "languageserver" = { + "wgsl" = { + "command" = "${pkgs.wgsl-analyzer}/bin/wgsl-analyzer"; + "filetypes" = [ "wgsl" ]; + }; + }; }; plugins = with pkgs.vimPlugins; [ @@ -60,6 +71,7 @@ in { popup-nvim plenary-nvim telescope-nvim + wgsl-vim nvim-lspconfig nvim-treesitter nvim-treesitter.withAllGrammars |
