Skip to content

Commit

Permalink
[vim] Add a keybinding for code actions
Browse files Browse the repository at this point in the history
Unfortunately, pyright doesn't support any...
  • Loading branch information
rouge8 committed Jul 5, 2023
1 parent b9df502 commit 135bf9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .config/nvim.symlink/lua/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ local on_attach = function(client, bufnr)
vim.keymap.set("v", "<leader>f", function()
vim.lsp.buf.format({ async = false })
end, bufopts)
-- Code actions
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, bufopts)
end

local capabilities = require("cmp_nvim_lsp").default_capabilities()
Expand Down

0 comments on commit 135bf9b

Please sign in to comment.