Improved nushell and nvim

This commit is contained in:
2023-08-29 13:29:37 +02:00
parent 70b18b36ca
commit dfe88eaa65
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")

View File

@ -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('.'))}"