Improved nushell and nvim
This commit is contained in:
parent
8e098411c4
commit
306059ea36
5 changed files with 26 additions and 10 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue