comment-nvim; lsp rename

This commit is contained in:
xqtc161 2024-03-18 18:23:29 +01:00
parent 637d16e3f5
commit ae3d65356b

View file

@ -27,6 +27,9 @@
enable = true; enable = true;
dir = "~/Documents/Obsidian Vault/"; dir = "~/Documents/Obsidian Vault/";
}; };
comment-nvim = {
enable = true;
};
indent-blankline.enable = true; indent-blankline.enable = true;
lualine.enable = true; lualine.enable = true;
lsp-format = {enable = true;}; lsp-format = {enable = true;};
@ -69,8 +72,8 @@
settings = { settings = {
snippet = { snippet = {
expand = "function(args) require('luasnip').lsp_expand(args.body) end"; expand = "function(args) require('luasnip').lsp_expand(args.body) end";
}; };
sources = [ sources = [
{name = "nvim_lsp";} {name = "nvim_lsp";}
{name = "path";} {name = "path";}
@ -86,8 +89,8 @@
#}; #};
mapping = { mapping = {
"<CR>" = '' "<CR>" = ''
cmp.mapping.confirm({ select = true }) cmp.mapping.confirm({ select = true })
''; '';
"<Tab>" = '' "<Tab>" = ''
function(fallback) function(fallback)
local luasnip = require('luasnip') local luasnip = require('luasnip')
@ -338,6 +341,15 @@
key = "<leader>Y"; key = "<leader>Y";
action = ''[["+Y]]''; action = ''[["+Y]]'';
} }
{
mode = ["n"];
key = "<leader>sr";
action = '' function()
vim.lsp.buf.rename()
end
'';
lua = true;
}
]; ];
}; };
} }