✨ Added further customization to quick-lint-js
This commit is contained in:
parent
7e51bf6600
commit
5fc9e19934
1 changed files with 8 additions and 1 deletions
|
|
@ -96,9 +96,16 @@ local on_attach = function(client)
|
||||||
require'completion'.on_attach(client)
|
require'completion'.on_attach(client)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Enable quick-list-js
|
-- Enable quick-lint-js
|
||||||
require('lspconfig/quick_lint_js').setup {}
|
require('lspconfig/quick_lint_js').setup {}
|
||||||
|
|
||||||
|
-- quick-lint-js detects errors in insert mode
|
||||||
|
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
|
||||||
|
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||||
|
update_in_insert = true,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
-- Enable rust-analyzer
|
-- Enable rust-analyzer
|
||||||
lspconfig.rust_analyzer.setup({
|
lspconfig.rust_analyzer.setup({
|
||||||
on_attach=on_attach,
|
on_attach=on_attach,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue