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" local lspconfig = require "lspconfig"
-- if you just want default config for the servers then put them in a table -- 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 for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup {
@ -12,6 +12,3 @@ for _, lsp in ipairs(servers) do
capabilities = capabilities, capabilities = capabilities,
} }
end end
--
-- lspconfig.pyright.setup { blabla}

View File

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