[LSP] Fix eslint formatting being overridden by vuels or tsls

This commit is contained in:
2025-06-06 09:07:50 +02:00
parent 408f84bb8f
commit 6e53296a0b
2 changed files with 10 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ local lsp = vim.lsp
local capabilities = require("lsp-options").capabilities
local on_attach = require("lsp-options").on_attach
local on_attach_no_formatting = require("lsp-options").on_attach_no_formatting
-- ┌ ┐
-- │ HTML, CSS, JSON │
@@ -29,7 +30,7 @@ lsp.config("jsonls", {
-- └ ┘
lsp.config("vue_ls", {
capabilities = capabilities,
on_attach = on_attach,
on_attach = on_attach_no_formatting,
filetypes = {
"vue",
},
@@ -40,7 +41,7 @@ lsp.config("vue_ls", {
-- └ ┘
lsp.config("ts_ls", {
capabilities = capabilities,
on_attach = on_attach,
on_attach = on_attach_no_formatting,
init_options = {
plugins = {
{