nvim: mini all the things #2

Merged
dln merged 6 commits from dln/push-nrovplvlzzsn into main 2024-11-06 01:03:58 +01:00
Showing only changes of commit 93f6d76c76 - Show all commits

View file

@ -35,7 +35,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
vim.keymap.set("n", "<space>r", vim.lsp.buf.rename, opts("Rename Symbol")) vim.keymap.set("n", "<space>r", vim.lsp.buf.rename, opts("Rename Symbol"))
vim.keymap.set({ "n", "v" }, "<space>a", vim.lsp.buf.code_action, opts("Code Action")) vim.keymap.set({ "n", "v" }, "<space>a", vim.lsp.buf.code_action, opts("Code Action"))
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts("Buffer References")) vim.keymap.set("n", "gr", vim.lsp.buf.references, opts("Buffer References"))
vim.keymap.set("n", "<localleader>f", function() vim.keymap.set("n", "<space>cf", function()
vim.lsp.buf.format({ async = true }) vim.lsp.buf.format({ async = true })
end, opts("Format Buffer")) end, opts("Format Buffer"))
end, end,