refactor(lsps): remove unecessary emmet lsp configuration
This commit is contained in:
@@ -1,39 +1,7 @@
|
|||||||
local lsps = {
|
local lsps = {
|
||||||
["cssls"] = {},
|
["cssls"] = {},
|
||||||
["emmet_language_server"] = {
|
["emmet_language_server"] = {
|
||||||
filetypes = {
|
filetypes = require("lspconfig.configs.emmet_language_server").default_config.filetypes,
|
||||||
"css",
|
|
||||||
"eruby",
|
|
||||||
"html",
|
|
||||||
"javascript",
|
|
||||||
"javascriptreact",
|
|
||||||
"less",
|
|
||||||
"sass",
|
|
||||||
"scss",
|
|
||||||
"pug",
|
|
||||||
"templ",
|
|
||||||
"typescriptreact",
|
|
||||||
},
|
|
||||||
init_options = {
|
|
||||||
---@type table<string, string>
|
|
||||||
includeLanguages = {},
|
|
||||||
--- @type string[]
|
|
||||||
excludeLanguages = {},
|
|
||||||
--- @type string[]
|
|
||||||
extensionsPath = {},
|
|
||||||
--- @type table<string, any> [Emmet Docs](https://docs.emmet.io/customization/preferences/)
|
|
||||||
preferences = {},
|
|
||||||
--- @type boolean Defaults to `true`
|
|
||||||
showAbbreviationSuggestions = true,
|
|
||||||
--- @type "always" | "never" Defaults to `"always"`
|
|
||||||
showExpandedAbbreviation = "always",
|
|
||||||
--- @type boolean Defaults to `false`
|
|
||||||
showSuggestionsAsSnippets = false,
|
|
||||||
--- @type table<string, any> [Emmet Docs](https://docs.emmet.io/customization/syntax-profiles/)
|
|
||||||
syntaxProfiles = {},
|
|
||||||
--- @type table<string, string> [Emmet Docs](https://docs.emmet.io/customization/snippets/#variables)
|
|
||||||
variables = {},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
["eslint"] = {},
|
["eslint"] = {},
|
||||||
["denols"] = {},
|
["denols"] = {},
|
||||||
@@ -97,6 +65,7 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
v.capabilities = require("blink.cmp").get_lsp_capabilities(v.capabilities)
|
v.capabilities = require("blink.cmp").get_lsp_capabilities(v.capabilities)
|
||||||
|
|
||||||
lsp[k].setup(v)
|
lsp[k].setup(v)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user