Fix the config and add C# lsp

This commit is contained in:
2026-05-04 18:36:35 -03:00
parent 0b65c3ff8e
commit 5c7bbd33cd
5 changed files with 85 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
return {
{
"nvim-treesitter/nvim-treesitter",
"neovim-treesitter/nvim-treesitter",
lazy = false,
dependencies = "AstroNvim/astrocore",
branch = "main",
main = "nvim-treesitter",
opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
@@ -70,5 +72,52 @@ return {
}
}
end
}
},
-- init = function()
-- vim.api.nvim_create_autocmd('FileType', {
-- callback = function()
-- -- Enable treesitter highlighting and disable regex syntax
-- pcall(vim.treesitter.start)
-- -- Enable treesitter-based indentation
-- vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
-- end,
-- }
-- )
-- local ensureInstalled = {
-- "lua",
-- "cpp",
-- "c",
-- "bash",
-- "vim",
-- "markdown",
-- "asm",
-- "cmake",
-- "css",
-- "html",
-- "javascript",
-- "printf",
-- "fish",
-- "git_config",
-- "git_rebase",
-- "gitcommit",
-- "gitignore",
-- "gitattributes",
-- "java",
-- "meson",
-- "ninja",
-- "python",
-- "sql",
-- "typescript",
-- "vimdoc",
-- "xml"
-- -- ... your parsers
-- }
-- local alreadyInstalled = require('nvim-treesitter.config').get_installed()
-- local parsersToInstall = vim.iter(ensureInstalled)
-- :filter(function(parser)
-- return not vim.tbl_contains(alreadyInstalled, parser)
-- end)
-- :totable()
-- require('nvim-treesitter').install(parsersToInstall)
-- end,
}