Refine neovim conf

This commit is contained in:
Vili Sinervä 2024-12-20 01:55:38 +02:00
parent 13e7078dde
commit 814c9cb1e3
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -94,6 +94,7 @@ in
# TODO Check desireable keybinds and commands for all plugins # TODO Check desireable keybinds and commands for all plugins
plugins = { plugins = {
fugitive.enable = true;
gitsigns.enable = true; gitsigns.enable = true;
lualine = { lualine = {
enable = true; enable = true;
@ -120,19 +121,17 @@ in
enable = true; enable = true;
settings = { settings = {
sources = [ sources = [
{ name = "nvim-lsp"; }
{ name = "buffer"; }
{ name = "vim-lsp-signature-help"; }
{ name = "vim-vsnip"; } { name = "vim-vsnip"; }
{ name = "vim-lsp-signature-help"; }
{ name = "nvim-lsp"; }
{ name = "treesitter"; } { name = "treesitter"; }
{ name = "buffer"; }
]; ];
mapping = { mapping = {
"<C-Space>" = "cmp.mapping.complete()"; "<C-Space>" = "cmp.mapping.complete()";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-e>" = "cmp.mapping.close()"; "<C-e>" = "cmp.mapping.close()";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<CR>" = "cmp.mapping.confirm({ select = true })"; "<CR>" = "cmp.mapping.confirm({ select = true })";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; "<C-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; "<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
}; };
}; };