fix(security): disabling LSPs for password-store edits
This commit is contained in:
@@ -81,3 +81,12 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
vim.o.spelllang = "en"
|
vim.o.spelllang = "en"
|
||||||
end,
|
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
|
||||||
|
})
|
||||||
|
Reference in New Issue
Block a user