This commit is contained in:
Christoph J. Scherr 2024-01-19 23:25:11 +01:00
parent 355d37f792
commit 80a7e22a62
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 17 additions and 4 deletions

View File

@ -4,7 +4,7 @@ local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
-- if you just want default config for the servers then put them in a table
local servers = { "html", "cssls", "tsserver", "clangd" }
local servers = { "html", "cssls", "tsserver", "clangd", "pyright", "rust_analyzer" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
@ -12,6 +12,3 @@ for _, lsp in ipairs(servers) do
capabilities = capabilities,
}
end
--
-- lspconfig.pyright.setup { blabla}

View File

@ -12,6 +12,12 @@ M.treesitter = {
"c",
"markdown",
"markdown_inline",
"rust",
"cpp",
"python",
"yaml",
"json",
"toml",
},
indent = {
enable = true,
@ -23,6 +29,9 @@ M.treesitter = {
M.mason = {
ensure_installed = {
-- general purpose
"purpose",
-- lua stuff
"lua-language-server",
"stylua",
@ -37,6 +46,13 @@ M.mason = {
-- c/cpp stuff
"clangd",
"clang-format",
-- rust
"rust-analyzer",
"taplo",
-- python
"pyright",
},
}