Skip to content

Commit e1fc569

Browse files
authored
Merge pull request #276 from stanfish06/audit/lstoggle-stop-version-check
[audit] fix LspToggle compat guard: nvim-0.12 → nvim-0.11
2 parents bcc852d + 508b1c1 commit e1fc569

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/config/plugin_config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if not is_vscode then
133133
vim.api.nvim_create_user_command("LspToggle", function(opts)
134134
local name = opts.args
135135
for _, client in ipairs(vim.lsp.get_clients({ bufnr = 0, name = name })) do
136-
if vim.fn.has("nvim-0.12") == 1 then
136+
if vim.fn.has("nvim-0.11") == 1 then
137137
client:stop()
138138
else
139139
vim.lsp.stop_client(client.id)

0 commit comments

Comments
 (0)