add oil.nvim
This commit is contained in:
parent
d65c4083ba
commit
09aa20cf59
4 changed files with 71 additions and 1 deletions
2
init.lua
2
init.lua
|
|
@ -16,7 +16,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||
vim.keymap.set("n", "<leader>gr", vim.lsp.buf.references, opts)
|
||||
vim.keymap.set("n", "<leader>r", vim.lsp.buf.rename, opts)
|
||||
vim.keymap.set("n", "<leader>a", vim.lsp.buf.code_action, opts)
|
||||
vim.keymap.set("n", "<leader>for", function()
|
||||
vim.keymap.set("n", "<leader>lf", function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
end, opts)
|
||||
vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float, opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue