feat: Add rename symbol support

This commit is contained in:
simrat39
2021-04-22 15:02:48 -07:00
parent 2448b647d4
commit 4395434980
2 changed files with 41 additions and 0 deletions

View File

@@ -136,6 +136,10 @@ local function setup_keymaps(bufnr)
vim.api.nvim_buf_set_keymap(bufnr, "n", "<C-space>",
":lua require('symbols-outline.hover').show_hover()<Cr>",
{})
-- rename symbol
vim.api.nvim_buf_set_keymap(bufnr, "n", "r",
":lua require('symbols-outline.rename').rename()<Cr>",
{})
-- close outline when escape is pressed
vim.api.nvim_buf_set_keymap(bufnr, "n", "<Esc>", ":bw!<Cr>", {})
end