From aac415c3b56ada833033320f9e38a03517b37394 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 5 Jun 2025 12:22:23 +0200 Subject: [PATCH] [Spell] Remove textlsp, as it was annoying --- nvim/lua/keybinds.lua | 11 ----------- nvim/lua/plugins/lsp/ls/text.lua | 9 --------- nvim/lua/plugins/lsp/mason.lua | 1 - 3 files changed, 21 deletions(-) diff --git a/nvim/lua/keybinds.lua b/nvim/lua/keybinds.lua index e4f6a7a..ee6fbec 100755 --- a/nvim/lua/keybinds.lua +++ b/nvim/lua/keybinds.lua @@ -112,17 +112,6 @@ keymap.set("i", "", "", opts("Jump to EOL")) keymap.set("i", "", "", opts("Jump to beginning of line")) -- Spell checking -function StopTextlsp() - local clients = vim.lsp.get_clients() - for _, client in pairs(clients) do - if client.name == "textlsp" then - vim.lsp.stop_client(client.id) - end - end -end - -keymap.set("n", "sr", ':LspStart textlsp', opts("Start textlsp")) -keymap.set("n", "sq", StopTextlsp, opts("Stop textlsp")) keymap.set("n", "ss", ":set spell", opts("Start built-in spell checker")) keymap.set("n", "sn", ":set nospell", opts("Stop spell checker")) keymap.set("n", "slu", ":set spelllang=en_us", opts("Set spell checker lang to en_US")) diff --git a/nvim/lua/plugins/lsp/ls/text.lua b/nvim/lua/plugins/lsp/ls/text.lua index 8498ce5..f312c92 100644 --- a/nvim/lua/plugins/lsp/ls/text.lua +++ b/nvim/lua/plugins/lsp/ls/text.lua @@ -22,16 +22,7 @@ lsp.config("texlab", { on_attach = on_attach, }) --- ┌ ┐ --- │ Spell checking │ --- └ ┘ -lsp.config("textlsp", { - capabilities = capabilities, - on_attach = on_attach, -}) - -- ── Enable configs ─────────────────────────────────────────────── local enable = vim.lsp.enable enable("marksman") enable("texlab") -enable("textlsp") diff --git a/nvim/lua/plugins/lsp/mason.lua b/nvim/lua/plugins/lsp/mason.lua index 0bbd290..c411119 100755 --- a/nvim/lua/plugins/lsp/mason.lua +++ b/nvim/lua/plugins/lsp/mason.lua @@ -40,7 +40,6 @@ return { "rust_analyzer", "ruby_lsp", -- "ts_ls", - "textlsp", "vue_ls" }, -- auto-install configured servers (with lspconfig)