diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-08-29 10:42:40 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-08-29 10:42:40 -0400 |
| commit | 232c3bc6ca183dadb380fb80e9db25ae72565cf8 (patch) | |
| tree | 97ac99eb2c1f030e0b9fc16d8f0622e6c8c79b72 /modules/desktop/apps/editors/neovim.nix | |
| parent | b5906d21bbe4cc15ad474397c0e08d4112057af1 (diff) | |
| parent | 2ea5db7f5d23edb609823c4e3279f980389885cd (diff) | |
| download | nix-config-232c3bc6ca183dadb380fb80e9db25ae72565cf8.tar.gz nix-config-232c3bc6ca183dadb380fb80e9db25ae72565cf8.tar.bz2 nix-config-232c3bc6ca183dadb380fb80e9db25ae72565cf8.zip | |
merge desktop laptop 2026-08-29
Diffstat (limited to 'modules/desktop/apps/editors/neovim.nix')
| -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 |
