Explicitly set mode to visual instead of visual+select

This commit is contained in:
2023-09-10 15:18:39 +02:00
parent 146985824f
commit 449facde2e
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ function P.on_attach(client, bufnr)
vim.keymap.set("n", "<leader>rn", ca_rename, opts)
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, opts)
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
vim.keymap.set({ "n", "v", }, "<leader>lf", function () vim.lsp.buf.format({ async = true, }) end, opts)
vim.keymap.set({ "n", "x", }, "<leader>lf", function () vim.lsp.buf.format({ async = true, }) end, opts)
-- if client.server_capabilities.document_range_formatting then
-- end