summaryrefslogtreecommitdiffstats
path: root/modules/desktop
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-11-06 10:28:46 -0500
committerJon Santmyer <jon@jonsantmyer.com>2026-11-06 10:29:07 -0500
commit9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9 (patch)
treeab00fa3068991af758582efe9ad377f901601ba3 /modules/desktop
parentf30eee6403bd5efdc0801c2190f74d55d678b8cf (diff)
downloadnix-config-9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9.tar.gz
nix-config-9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9.tar.bz2
nix-config-9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9.zip
2026-11-06 laptopHEADmaster
Diffstat (limited to 'modules/desktop')
-rw-r--r--modules/desktop/apps/editors/neovim.nix20
1 files changed, 18 insertions, 2 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