nvim: lsp: Sync nvim-lsp-ts-utils settings with upstream
This commit is contained in:
parent
44411a87e2
commit
555026ef80
1 changed files with 5 additions and 0 deletions
|
@ -146,6 +146,7 @@ local on_attach = function(client, bufnr)
|
||||||
eslint_enable_disable_comments = true,
|
eslint_enable_disable_comments = true,
|
||||||
eslint_enable_diagnostics = true,
|
eslint_enable_diagnostics = true,
|
||||||
eslint_config_fallback = nil,
|
eslint_config_fallback = nil,
|
||||||
|
eslint_show_rule_id = false,
|
||||||
|
|
||||||
enable_formatting = true,
|
enable_formatting = true,
|
||||||
formatter = "prettier",
|
formatter = "prettier",
|
||||||
|
@ -154,6 +155,9 @@ local on_attach = function(client, bufnr)
|
||||||
update_imports_on_move = false,
|
update_imports_on_move = false,
|
||||||
require_confirmation_on_move = false,
|
require_confirmation_on_move = false,
|
||||||
watch_dir = nil,
|
watch_dir = nil,
|
||||||
|
|
||||||
|
filter_out_diagnostics_by_severity = {},
|
||||||
|
filter_out_diagnostics_by_code = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
ts_utils.setup_client(client)
|
ts_utils.setup_client(client)
|
||||||
|
@ -184,6 +188,7 @@ end
|
||||||
-- See https://github.com/jose-elias-alvarez/null-ls.nvim/issues/38
|
-- See https://github.com/jose-elias-alvarez/null-ls.nvim/issues/38
|
||||||
-- Required by nvim-lsp-ts-utils to provide ESLint code actions, diagnostics
|
-- Required by nvim-lsp-ts-utils to provide ESLint code actions, diagnostics
|
||||||
-- and formatting.
|
-- and formatting.
|
||||||
|
null_ls.config {}
|
||||||
null_ls.setup {}
|
null_ls.setup {}
|
||||||
|
|
||||||
local servers = { 'hls', 'rust_analyzer', 'pylsp', 'tsserver' }
|
local servers = { 'hls', 'rust_analyzer', 'pylsp', 'tsserver' }
|
||||||
|
|
Loading…
Reference in a new issue