chezmoi/dot_config/nvim/lua/plugins/lspconfig.lua
kjuulh d80976a36b
Add .config/nvim/LICENSE
Add .config/nvim/README.md
Add .config/nvim/.gitignore
Add .config/nvim/.neoconf.json
Add .config/nvim/init.lua
Add .config/nvim/lazy-lock.json
Add .config/nvim/lua/config/autocmds.lua
Add .config/nvim/lua/config/keymaps.lua
Add .config/nvim/lua/config/lazy.lua
Add .config/nvim/lua/config/options.lua
Add .config/nvim/lua/plugins/catppuccin.lua
Add .config/nvim/lua/plugins/copilot-cmp.lua
Add .config/nvim/lua/plugins/copilot.lua
Add .config/nvim/lua/plugins/core.lua
Add .config/nvim/lua/plugins/crates.lua
Add .config/nvim/lua/plugins/example.lua
Add .config/nvim/lua/plugins/lspconfig.lua
Add .config/nvim/lua/plugins/neoconf.lua
Add .config/nvim/lua/plugins/neorg.lua
Add .config/nvim/lua/plugins/noice.lua
Add .config/nvim/lua/plugins/null-ls.lua
Add .config/nvim/lua/plugins/nvim-cmp.lua
Add .config/nvim/lua/plugins/nvim-dap.lua
Add .config/nvim/lua/plugins/ranger.lua
Add .config/nvim/lua/plugins/rust-tools.lua
Add .config/nvim/lua/plugins/tmux.lua
Add .config/nvim/lua/plugins/toggleterm.lua
Add .config/nvim/lua/plugins/treesitter.lua
Add .config/nvim/lua/plugins/vim-wordmotion.lua
Add .config/nvim/lua/plugins/zen-mode.lua
Add .config/nvim/neoconf.json
Add .config/nvim/queries/hurl/highlights.scm
Add .config/nvim/queries/hurl/injections.scm
Add .config/nvim/stylua.toml
Add .config/ranger/.keep
Add .config/toot/config.json
Add .config/zathura/.keep
Add .config/zellij/config.kdl
Update .zimrc
2023-07-24 12:41:02 +02:00

123 lines
3.1 KiB
Lua

return {
"neovim/nvim-lspconfig",
opts = {
---@type lspconfig.options
servers = {
tailwindcss = {
filetypes = {
"css",
"scss",
"sass",
"html",
"javascriptreact",
"typescriptreact",
"rust",
"svelte",
},
init_options = {
userLanguages = {
rust = "html"
}
},
settings = {
includeLanguages = {
rust = "html",
}
},
tailwindcss = {
experimental = {
classRegex = {
[[class= "([^"]*)]],
[[class: "([^"]*)]],
'~H""".*class="([^"]*)".*"""',
'~F""".*class="([^"]*)".*"""',
},
},
validate = true
}
},
jsonls = {
on_new_config = function(new_config)
new_config.settings.json.schemas = new_config.settings.json.schemas or {
}
vim.list_extend(new_config.settings.json.schemas, require("schemastore").json.schemas())
end,
settings = {
json = {
validate = { enable = true },
schemas = {
{
description = "shuttle go plan",
fileMatch = {
"shuttle.yaml"
},
name = "shuttle.yaml",
url = "file:///Users/kah/git/github.com/lunarway/lw-shuttle-go-plan/.schemastore/schema.json"
}
}
}
}
},
yamlls = {
on_new_config = function(new_config)
new_config.settings.json.schemas = new_config.settings.json.schemas or {
}
vim.list_extend(new_config.settings.json.schemas, require("schemastore").json.schemas())
end,
settings = {
yaml = {
validate = true,
schemas = {
["file:///Users/kah/git/github.com/lunarway/lw-shuttle-go-plan/.schemastore/schema.json"] = "shuttle.yaml"
--{
-- description = "shuttle go plan",
-- fileMatch = {
-- "shuttle.yaml"
-- },
-- name = "shuttle.yaml",
-- url =
--}
}
}
}
},
pylsp = {
settings = {
pylsp = {
plugins = {
autopep8 = {
enabled = false
},
yapf = {
enabled = false
},
pylint = {
enabled = true
},
flake8 = {
enabled = true
},
["pylsp-mypy"] = {
enabled = true,
livemode = true
},
["pylsp-rope"] = {
enabled = true
},
["pyls-isort"] = {
enabled = true
},
["python-lsp-black"] = {
enabled = true
},
["pyls-memestra"] = {
enabled = true
},
}
}
}
}
}
}
}