Изменил конфиг nvim
This commit is contained in:
parent
09a6c3ef0b
commit
72dba3b490
1 changed files with 8 additions and 1 deletions
|
@ -282,7 +282,14 @@ return {
|
|||
-- lspconfig.rust_analyzer.setup {}
|
||||
|
||||
-- Bash
|
||||
lspconfig.bashls.setup {}
|
||||
lspconfig.bashls.setup {
|
||||
on_attach = function(client, bufnr)
|
||||
local filename = vim.api.nvim_buf_get_name(bufnr)
|
||||
if filename:match '/%.env$' or filename:match '/%.env%..+$' then
|
||||
client.stop() -- отключить LSP только для .env
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
-- JSON
|
||||
local cap_json = vim.lsp.protocol.make_client_capabilities()
|
||||
|
|
Loading…
Add table
Reference in a new issue