diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-11-06 10:28:46 -0500 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-11-06 10:29:07 -0500 |
| commit | 9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9 (patch) | |
| tree | ab00fa3068991af758582efe9ad377f901601ba3 /modules | |
| parent | f30eee6403bd5efdc0801c2190f74d55d678b8cf (diff) | |
| download | nix-config-9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9.tar.gz nix-config-9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9.tar.bz2 nix-config-9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9.zip | |
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/desktop/apps/editors/neovim.nix | 20 | ||||
| -rw-r--r-- | modules/options.nix | 2 |
2 files changed, 19 insertions, 3 deletions
diff --git a/modules/desktop/apps/editors/neovim.nix b/modules/desktop/apps/editors/neovim.nix index e3bb02e..e719565 100644 --- a/modules/desktop/apps/editors/neovim.nix +++ b/modules/desktop/apps/editors/neovim.nix @@ -26,6 +26,7 @@ in { pkgs.texlab pkgs.zls pkgs.wgsl-analyzer + pkgs.clang-tools ]; home.manager.programs.neovim = { @@ -50,7 +51,7 @@ in { "nix.serverPath" = "nil"; "zig.enabled" = true; - "zig.path" = "${pkgs.zls}/bin/zls"; + "zig.path" = "zls"; "languageserver" = { "wgsl" = { @@ -72,9 +73,24 @@ in { plenary-nvim telescope-nvim wgsl-vim + zig-vim nvim-lspconfig - nvim-treesitter nvim-treesitter.withAllGrammars + { + plugin = nvim-treesitter.withAllGrammars; + type = "lua"; + config = '' + require('nvim-treesitter.config').setup { + highlight = { enable = true }, + indent = { enable = true }, + } + vim.api.nvim_create_autocmd('FileType', { + pattern = { 'c', 'h', 'lua', 'nix', 'mk', 'zig' }, + callback = function() vim.treesitter.start() end, + }) + vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" + ''; + } coc-clangd coc-rust-analyzer diff --git a/modules/options.nix b/modules/options.nix index 04566eb..6c8af13 100644 --- a/modules/options.nix +++ b/modules/options.nix @@ -89,7 +89,7 @@ home = "/home/${name}"; isNormalUser = true; group = "users"; - extraGroups = ["wheel"]; + extraGroups = ["wheel" "docker"]; uid = 1000; }; |
