Launch.nvim icon indicating copy to clipboard operation
Launch.nvim copied to clipboard

Add keybinding for "lua vim.lsp.buf.range_code_action()"

Open olalonde opened this issue 3 years ago • 1 comments

Maybe there is a way to call a different function based on whether a range is present or not?

olalonde avatar Jul 14 '22 16:07 olalonde

  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)

olalonde avatar Jul 14 '22 16:07 olalonde