From 620a5cd2d64eb3419adc38cd2a0c122facb279b0 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 5 Jun 2025 11:55:27 +0200 Subject: [PATCH] [Spell] Update binds, fix issue --- nvim/lua/keybinds.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/lua/keybinds.lua b/nvim/lua/keybinds.lua index dda9d35..e4f6a7a 100755 --- a/nvim/lua/keybinds.lua +++ b/nvim/lua/keybinds.lua @@ -114,14 +114,14 @@ keymap.set("i", "", "", opts("Jump to beginning of line")) -- Spell checking function StopTextlsp() local clients = vim.lsp.get_clients() - for client in clients do + for _, client in pairs(clients) do if client.name == "textlsp" then vim.lsp.stop_client(client.id) end end end -keymap.set("n", "sr", ':lua vim.lsp.enable("textlsp")', opts("Start textlsp")) +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"))