dotfiles/dot_config/nvim/lua/plugins/nvim-lspconfig.lua.tmpl
punkfairie 71cedb1ca1
Update .config/nvim/lua/config/lazy.lua
Update .config/nvim/lua/plugins/conform.lua
Update .config/nvim/lua/plugins/mason.lua
Update .config/nvim/lua/plugins/nvim-lint.lua
Update .config/nvim/lua/plugins/nvim-lspconfig.lua
Update .config/nvim/lua/plugins/nvim-treesitter.lua
Remove .config/nvim/lua/plugins/refactoring.lua
Update tags
2024-06-10 17:48:49 -07:00

79 lines
2.3 KiB
Cheetah

return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
servers = {
-- data/conf
sqlls = {},
taplo = {},
-- web
html = {
filetypes = { "html" {{ if not .isServer }}, "liquid"{{ end }} },
},
css_variables = { mason = false },
cssls = {},
{{ if not .isServer -}}
denols = {},
stylelint_lsp = {
settings = {
stylelintplus = {
autoFixOnFormat = true,
validateOnSave = true,
validateOnType = false,
},
},
},
{{ end -}}
emmet_language_server = {
filetypes = {
"css",
"eruby",
"html",
"javascriptreact",
"less",
"sass",
"scss",
"pug",
"typescriptreact",
"vue",
"blade",
},
-- Read more about this options in the [vscode docs](https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration).
-- **Note:** only the options listed in the table are supported.
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 = {},
},
},
{{ if not .isServer -}}
-- php
phpactor = {
filetypes = { "php", "blade" },
},
{{ end -}}
-- shell
pkgbuild_language_server = { mason = false },
},
},
},
}