diff --git a/init.lua b/init.lua index 4c4dd7a..9353597 100644 --- a/init.lua +++ b/init.lua @@ -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.