feat: Add code actions support

Uses the default handler, mapped to 'a'
This commit is contained in:
simrat39
2021-04-24 14:51:28 -07:00
parent 51e1170eec
commit aaae362ae8
2 changed files with 35 additions and 0 deletions

View File

@@ -143,6 +143,10 @@ local function setup_keymaps(bufnr)
vim.api.nvim_buf_set_keymap(bufnr, "n", "r",
":lua require('symbols-outline.rename').rename()<Cr>",
{})
-- code actions
vim.api.nvim_buf_set_keymap(bufnr, "n", "a",
":lua require('symbols-outline.code_action').show_code_actions()<Cr>",
{})
-- close outline when escape is pressed
vim.api.nvim_buf_set_keymap(bufnr, "n", "<Esc>", ":bw!<Cr>",{})
end