Skip to content

Commit

Permalink
fix(nvim): remove vtsls from .astro
Browse files Browse the repository at this point in the history
  • Loading branch information
radoslawgrochowski committed Nov 12, 2024
1 parent b9f0802 commit 7c2a7f3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions modules/nvim/plugins/lsp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ local jsFiletypes = {
'typescript',
'typescriptreact',
'typescript.tsx',
'astro',
}

lspconfig.vtsls.setup {
Expand Down Expand Up @@ -153,7 +152,15 @@ lspconfig.vtsls.setup {
}

lspconfig.eslint.setup {
filetypes = jsFiletypes,
filetypes = {
'javascript',
'javascriptreact',
'javascript.jsx',
'typescript',
'typescriptreact',
'typescript.tsx',
'astro',
},
on_attach = function(client, bufnr)
vim.api.nvim_create_autocmd('BufWritePre', {
buffer = bufnr,
Expand Down

0 comments on commit 7c2a7f3

Please sign in to comment.