- fix: Name of autocommands for JS keymaps fixed
- feature: Trigger code action on <Ctrl+.> just like VS Code
This commit is contained in:
Pratik Tripathy
2024-05-18 18:33:33 +05:30
parent 67ef83999d
commit b2a32b6a89
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
-- Enable spell check on markdown and text files
-- Enable keymaps that are specific to only a certain LSP
vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("keymaps-csharp-omnisharp", { clear = true }),
group = vim.api.nvim_create_augroup("keymaps-javascript", { clear = true }),
pattern = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx", "vue", "svelte", "astro" },
callback = function()
-- vim.keymap.set({ "n", "v" }, "<leader>ca", "<cmd>OmniSharpGetCodeActions<CR>", { desc = "Code: Code Actions (C#)" })