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"
|
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}
|
|
||||||
|
|
|
@ -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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue