[Spell] Remove textlsp, as it was annoying

This commit is contained in:
Janis Hutz 2025-06-05 12:22:23 +02:00
parent 620a5cd2d6
commit aac415c3b5
3 changed files with 0 additions and 21 deletions

View File

@ -112,17 +112,6 @@ keymap.set("i", "<C-$>", "<End>", opts("Jump to EOL"))
keymap.set("i", "<C-0>", "<Home>", 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", "<leader>sr", ':LspStart textlsp', opts("Start textlsp"))
keymap.set("n", "<leader>sq", StopTextlsp, opts("Stop textlsp"))
keymap.set("n", "<leader>ss", ":set spell<CR>", opts("Start built-in spell checker"))
keymap.set("n", "<leader>sn", ":set nospell<CR>", opts("Stop spell checker"))
keymap.set("n", "<leader>slu", ":set spelllang=en_us<CR>", opts("Set spell checker lang to en_US"))

View File

@ -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")

View File

@ -40,7 +40,6 @@ return {
"rust_analyzer",
"ruby_lsp",
-- "ts_ls",
"textlsp",
"vue_ls"
},
-- auto-install configured servers (with lspconfig)