mirror of https://github.com/wlcx/home.git
vim: Add eslint, volar language servers
This commit is contained in:
parent
f3f0b69a50
commit
ced190e501
|
@ -28,11 +28,21 @@ require'lspconfig'.rnix.setup{
|
||||||
on_attach = on_attach
|
on_attach = on_attach
|
||||||
}
|
}
|
||||||
require'lspconfig'.rls.setup{
|
require'lspconfig'.rls.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach
|
||||||
}
|
}
|
||||||
|
require'lspconfig'.eslint.setup{
|
||||||
|
on_attach = on_attach
|
||||||
|
}
|
||||||
|
-- Configure volar (vuejs language server stuff) in "takeover" mode
|
||||||
|
require'lspconfig'.volar.setup{
|
||||||
|
filetypes = {'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json'},
|
||||||
|
on_attach = on_attach
|
||||||
|
}
|
||||||
|
--[[ If we didn't have takeover mode enabled above, we'd want this
|
||||||
require'lspconfig'.tsserver.setup{
|
require'lspconfig'.tsserver.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach
|
||||||
}
|
}
|
||||||
|
]]--
|
||||||
|
|
||||||
-- Diags with Trouble
|
-- Diags with Trouble
|
||||||
require('trouble').setup {
|
require('trouble').setup {
|
||||||
|
|
Loading…
Reference in New Issue