Launch.nvim
Launch.nvim copied to clipboard
Add keybinding for "lua vim.lsp.buf.range_code_action()"
Maybe there is a way to call a different function based on whether a range is present or not?
keymap(bufnr, "n", "<leader>la", "<cmd>lua vim.lsp.buf.code_action()<cr>", opts)
keymap(bufnr, "v", "<leader>la", "<cmd>lua vim.lsp.buf.range_code_action()<cr>", opts)