prevent LSP on proto files

This commit is contained in:
talksik
2025-07-14 18:52:21 -07:00
parent 9428bcd71b
commit fe3fab9a67
+6 -1
View File
@@ -263,7 +263,7 @@ vim.opt.rtp:prepend(lazypath)
-- NOTE: Here is where you install your plugins.
require('lazy').setup({
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
-- 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
-- NOTE: Plugins can also be added by using a table,
-- with the first argument being the link and the following
@@ -421,6 +421,11 @@ require('lazy').setup({
print("LSP stopped for " .. filetype .. " file.")
return
end
if filetype == 'proto' then
vim.lsp.stop_client(event.data.client_id)
print("LSP stopped for " .. filetype .. " file.")
return
end
-- NOTE: Remember that Lua is a real programming language, and as such it is possible
-- to define small helper and utility functions so you don't have to repeat yourself.