Prevent null ls from attaching to buffer #85
-
With eslint settings disabled, null-ls is still attaching to ts/js buffers. Is there a way to prevent ts-utils from starting null-ls? This causing issues when, for example, using the eslint language server. The I am using null-ls for other filetypes, so I must call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We have an option, local lspconfig = require("lspconfig")
lspconfig.tsserver.setup({
on_attach = function()
require("nvim-lsp-ts-utils").setup({ eslint_enable_code_actions = false })
end,
})
require("null-ls").config({})
lspconfig["null-ls"].setup({}) If it's attaching, it's either something else in your null-ls config (e.g. a source that's active for all filetypes) or a bug. Could you try the minimal config above? We could add an option to explicitly disable integrations, since having code actions enabled by default is a relic of how this plugin used to work, but it shouldn't be happening. |
Beta Was this translation helpful? Give feedback.
We have an option,
eslint_enable_code_actions
, which is set totrue
by default. If that option,eslint_enable_diagnostics
, andenable_formatting
are all set tofalse
, then no null-ls integrations will be registered and the client won't attach:If it's attaching, it's either something else in your null-ls config (e.g. a source that's active for all filetypes) or a bug. Could you try the minimal config above? We could add an option to explicitly…