nixvimConfigs/fiesta: update and fix setups config

This commit is contained in:
Gabriel Arazas 2024-02-04 19:48:21 +08:00
parent ce379c6823
commit abb50f11d4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
4 changed files with 21 additions and 12 deletions

View File

@ -36,17 +36,15 @@ in
groupIndex = 1; groupIndex = 1;
} }
(lib.mkIf nixvimCfg.setups.snippets.enable {
name = "luasnip";
groupIndex = 2;
})
{ name = "buffer"; }
{ {
name = "path"; name = "path";
groupIndex = 3; groupIndex = 3;
} }
{
name = "buffer";
groupIndex = 4;
}
]; ];
}; };
@ -61,6 +59,19 @@ in
plugins.cmp-dap.enable = true; plugins.cmp-dap.enable = true;
}) })
(lib.mkIf nixvimCfg.setups.snippets.enable {
plugins.nvim-cmp.extraOptions.snippet.expand.__raw = ''
function(args)
require('luasnip').lsp_expand(args.body)
end
'';
plugins.nvim-cmp.sources = [{
name = "luasnip";
groupIndex = 2;
}];
})
(lib.mkIf nixvimCfg.setups.treesitter.enable { (lib.mkIf nixvimCfg.setups.treesitter.enable {
plugins.cmp-treesitter.enable = true; plugins.cmp-treesitter.enable = true;
}) })

View File

@ -18,7 +18,7 @@ in
plugins.lsp.enable = true; plugins.lsp.enable = true;
# Keymaps for moving around in the buffer. # Keymaps for moving around in the buffer.
plugins.keymaps.lspBuf = { plugins.lsp.keymaps.lspBuf = {
K = "hover"; K = "hover";
gD = "references"; gD = "references";
gd = "definition"; gd = "definition";
@ -27,7 +27,7 @@ in
}; };
# Keymaps for moving around with the doctor. # Keymaps for moving around with the doctor.
plugins.keymaps.diagnostic = { plugins.lsp.keymaps.diagnostic = {
"<leader>j" = "goto_next"; "<leader>j" = "goto_next";
"<leader>k" = "goto_prev"; "<leader>k" = "goto_prev";
}; };

View File

@ -30,7 +30,7 @@ in
plugins.treesitter-context = { plugins.treesitter-context = {
enable = true; enable = true;
lineNumbers = true; lineNumbers = true;
maxLines = 10; maxLines = 7;
mode = "cursor"; mode = "cursor";
separator = "*"; separator = "*";
}; };

View File

@ -31,7 +31,6 @@ in
# Show them hidden suckers. # Show them hidden suckers.
options.list = true; options.list = true;
options.listchars = { options.listchars = {
eol = "";
tab = " *"; tab = " *";
trail = "·"; trail = "·";
nbsp = "%"; nbsp = "%";
@ -55,7 +54,6 @@ in
sections = { sections = {
lualine_a = [ "mode" ]; lualine_a = [ "mode" ];
lualine_b = [ "filename" ];
lualine_z = [ "location" ]; lualine_z = [ "location" ];
}; };
}; };