Improved nushell and nvim
This commit is contained in:
@ -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")
|
||||
|
@ -43,5 +43,5 @@ opt.fillchars = { eob = " ", vert = " " }
|
||||
opt.laststatus = 0
|
||||
opt.number = true
|
||||
opt.relativenumber = false
|
||||
opt.signcolumn = "yes:1"
|
||||
opt.signcolumn = "number"
|
||||
opt.statusline = "%{repeat('─',winwidth('.'))}"
|
||||
|
Reference in New Issue
Block a user