Add code actions and command search to neovim

(cherry picked from commit 37f53ea0dc)
This commit is contained in:
Warren Hood 2023-04-12 20:13:14 +02:00 committed by Warren Hood
parent 92736820d9
commit 2c9a05e098

View file

@ -153,3 +153,9 @@ for i=1,#arrows do
map('n', arrows[i], function () end)
map('i', arrows[i], function () end)
end
-- Code actions with ctrl + .
map('n', '<Leader>.', function() vim.lsp.buf.code_action({ apply = true}) end, { desc = 'Code action/Quick fix' })
-- Show telescope commands fuzzy finder
map('n', '<Leader><Leader>', function() require('telescope.builtin').commands() end, { desc = 'Show commands' })