summaryrefslogtreecommitdiff
path: root/apps/nixvim.nix
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nixvim.nix')
-rw-r--r--apps/nixvim.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/apps/nixvim.nix b/apps/nixvim.nix
index 7a959be..d2a112d 100644
--- a/apps/nixvim.nix
+++ b/apps/nixvim.nix
@@ -50,6 +50,12 @@
};
};
+ treesitter = {
+ enable = true;
+ folding = false;
+ settings.indent.enable = true;
+ };
+
lsp = {
enable = true;
servers = {
@@ -69,6 +75,42 @@
};
};
};
+
+ lspkind.enable = true;
+
+ luasnip.enable = true;
+
+ cmp = {
+ enable = true;
+ autoEnableSources = true;
+
+ settings = {
+ snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
+
+ mapping = {
+ "<Tab>" = "cmp.mapping.confirm({ select = true })";
+ "<S-Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
+ };
+
+ sources = [
+ {name = "path";}
+ {name = "nvim_lsp";}
+ {name = "luasnip";}
+ {name = "crates";}
+ {name = "buffer";}
+ ];
+ };
+ };
+
+ rustaceanvim = {
+ enable = false;
+
+ settings = {
+ tools.enable_clippy = true;
+ };
+ };
+
+ lualine.enable = true;
};
colorschemes.gruvbox.enable = true;