fix(security): disabling LSPs for password-store edits

This commit is contained in:
2025-07-17 09:15:48 +02:00
parent 4274260c41
commit efa9e8e862

View File

@@ -81,3 +81,12 @@ vim.api.nvim_create_autocmd("FileType", {
vim.o.spelllang = "en"
end,
})
-- disable LSP for password-store
vim.api.nvim_create_autocmd({"BufEnter", "BufRead" }, {
pattern = "/dev/shm/pass*",
group = vim.api.nvim_create_augroup('DisableLsp', {}),
callback = function ()
vim.lsp.stop_client(vim.lsp.get_clients())
end
})