[LSP] Fix eslint formatting being overridden by vuels or tsls
This commit is contained in:
		| @@ -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 = { | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user