From ced190e5019093453e4f37c85585b4f783caccee Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Thu, 16 Jun 2022 20:56:25 +0100 Subject: [PATCH] vim: Add eslint, volar language servers --- home/vim-dev/dev.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/home/vim-dev/dev.lua b/home/vim-dev/dev.lua index 24d8b0a..c24a5df 100644 --- a/home/vim-dev/dev.lua +++ b/home/vim-dev/dev.lua @@ -28,11 +28,21 @@ require'lspconfig'.rnix.setup{ on_attach = on_attach } 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{ - on_attach = on_attach, + on_attach = on_attach } +]]-- -- Diags with Trouble require('trouble').setup {