Improved nushell and nvim

This commit is contained in:
Eduard Urbach 2023-08-29 13:29:37 +02:00
parent 8e098411c4
commit 306059ea36
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 26 additions and 10 deletions

View file

@ -22,10 +22,12 @@ map("v", "<", "<gv")
map("v", ">", ">gv")
-- LSP
map("n", "gr", vim.lsp.buf.references, "Get references")
map("n", "gd", vim.lsp.buf.definition, "Get definition")
map({ "n", "i" }, "<f1>", vim.lsp.buf.hover, "Show information")
map("n", "gr", vim.lsp.buf.references, "References")
map("n", "gd", vim.lsp.buf.definition, "Definition")
map({ "n", "i" }, "<f1>", vim.lsp.buf.hover, "Hover")
map("n", "<f2>", vim.lsp.buf.rename, "Rename")
map({ "n", "i" }, "<C-f>", vim.lsp.buf.format, "Format")
map("n", "<leader>ca", vim.lsp.buf.code_action, "Code action")
-- Package manager
map("n", "<leader>l", "<cmd>Lazy<cr>", "Lazy")