nvim: lsp: Sync nvim-lsp-ts-utils settings with upstream

This commit is contained in:
Sanchayan Maity 2021-08-24 11:31:41 +05:30
parent 44411a87e2
commit 555026ef80

View file

@ -146,6 +146,7 @@ local on_attach = function(client, bufnr)
eslint_enable_disable_comments = true,
eslint_enable_diagnostics = true,
eslint_config_fallback = nil,
eslint_show_rule_id = false,
enable_formatting = true,
formatter = "prettier",
@ -154,6 +155,9 @@ local on_attach = function(client, bufnr)
update_imports_on_move = false,
require_confirmation_on_move = false,
watch_dir = nil,
filter_out_diagnostics_by_severity = {},
filter_out_diagnostics_by_code = {},
}
ts_utils.setup_client(client)
@ -184,6 +188,7 @@ end
-- See https://github.com/jose-elias-alvarez/null-ls.nvim/issues/38
-- Required by nvim-lsp-ts-utils to provide ESLint code actions, diagnostics
-- and formatting.
null_ls.config {}
null_ls.setup {}
local servers = { 'hls', 'rust_analyzer', 'pylsp', 'tsserver' }