feat(keybindings): add code action to visual mode (#4022)

* feat(keybindings): add code action to visual mode

* fmt
This commit is contained in:
sigmaSd 2023-04-12 07:23:35 +01:00 committed by GitHub
parent 21311d6b64
commit b5cc0a51bd
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,6 +97,10 @@ M.config = function()
-- see https://neovim.io/doc/user/map.html#:map-cmd -- see https://neovim.io/doc/user/map.html#:map-cmd
vmappings = { vmappings = {
["/"] = { "<Plug>(comment_toggle_linewise_visual)", "Comment toggle linewise (visual)" }, ["/"] = { "<Plug>(comment_toggle_linewise_visual)", "Comment toggle linewise (visual)" },
l = {
name = "LSP",
a = { "<cmd>lua vim.lsp.buf.code_action()<cr>", "Code Action" },
},
}, },
mappings = { mappings = {
[";"] = { "<cmd>Alpha<CR>", "Dashboard" }, [";"] = { "<cmd>Alpha<CR>", "Dashboard" },