lsp
This commit is contained in:
parent
355d37f792
commit
80a7e22a62
|
@ -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}
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue