mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-10-21 15:47:06 +00:00
treewide: remove usage of default_on_attach outside LspAttach
This commit is contained in:
parent
11fd1b7083
commit
c13edf9961
9 changed files with 16 additions and 31 deletions
|
@ -15,18 +15,18 @@
|
|||
|
||||
cfg = config.vim.languages.yaml;
|
||||
|
||||
on_attach = mkLuaInline (
|
||||
on_attach =
|
||||
if config.vim.languages.helm.lsp.enable && config.vim.languages.helm.enable
|
||||
then ''
|
||||
function(client, bufnr)
|
||||
default_on_attach()
|
||||
local filetype = vim.bo[bufnr].filetype
|
||||
if filetype == "helm" then
|
||||
client.stop()
|
||||
then
|
||||
mkLuaInline ''
|
||||
function(client, bufnr)
|
||||
local filetype = vim.bo[bufnr].filetype
|
||||
if filetype == "helm" then
|
||||
client.stop()
|
||||
end
|
||||
end
|
||||
end''
|
||||
else "default_on_attach"
|
||||
);
|
||||
''
|
||||
else null;
|
||||
|
||||
defaultServers = ["yaml-language-server"];
|
||||
servers = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue