Fix the config and add C# lsp
This commit is contained in:
@@ -25,13 +25,15 @@ return {
|
||||
|
||||
{ import = "astrocommunity.quickfix.nvim-bqf" },
|
||||
|
||||
{ import = "astrocommunity.markdown-and-latex.vimtex" },
|
||||
|
||||
-- { import = "astrocommunity.diagnostics.lsp_lines-nvim" },
|
||||
|
||||
-- { import = "astrocommunity.diagnostics.trouble-nvim" },
|
||||
|
||||
{ import = "astrocommunity.editing-support.rainbow-delimiters-nvim" },
|
||||
|
||||
{ import = "astrocommunity.editing-support.ultimate-autopair-nvim" },
|
||||
-- { import = "astrocommunity.editing-support.ultimate-autopair-nvim" },
|
||||
|
||||
{ import = "astrocommunity.indent.mini-indentscope" },
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ return {
|
||||
-- Configure core features of AstroNvim
|
||||
features = {
|
||||
large_buf = { size = 1024 * 500, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
|
||||
autopairs = true, -- enable autopairs at start
|
||||
autopairs = false, -- enable autopairs at start
|
||||
cmp = true, -- enable completion at start
|
||||
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
|
||||
highlighturl = true, -- highlight URLs at start
|
||||
@@ -56,12 +56,18 @@ return {
|
||||
mapleader = " ", -- sets vim.g.mapleader
|
||||
autoformat_enabled = false, -- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled)
|
||||
cmp_enabled = true, -- enable completion at start
|
||||
autopairs_enabled = true, -- enable autopairs at start
|
||||
autopairs_enabled = false, -- enable autopairs at start
|
||||
diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
|
||||
icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
|
||||
ui_notifications_enabled = true, -- disable notifications when toggling UI elements
|
||||
c_syntax_for_h = 1,
|
||||
wiki_root = '~/Documentos/Wiki',
|
||||
-- vimtex
|
||||
vimtex_view_method = "zathura",
|
||||
vimtex_compiler_latexmk = {
|
||||
aux_dir = "/run/user/1000/vimtex"
|
||||
},
|
||||
-- wiki
|
||||
wiki_journal = {
|
||||
name = "journal",
|
||||
frequency = "daily",
|
||||
|
||||
@@ -11,7 +11,7 @@ return {
|
||||
"bashls",
|
||||
-- "pylsp"=,
|
||||
"pyright",
|
||||
"cmake",
|
||||
-- "cmake",
|
||||
"mesonlsp",
|
||||
"vimls",
|
||||
"cssls",
|
||||
@@ -19,6 +19,19 @@ return {
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
registries = {
|
||||
-- default Mason registry has highest priority
|
||||
"github:mason-org/mason-registry",
|
||||
-- Add the AstroNvim mason registry
|
||||
"github:AstroNvim/mason-registry",
|
||||
-- C# lsp
|
||||
"github:Crashdummyy/mason-registry",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
|
||||
{
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
|
||||
9
lua/plugins/roslyn.lua
Normal file
9
lua/plugins/roslyn.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"seblyng/roslyn.nvim",
|
||||
---@module 'roslyn.config'
|
||||
---@type RoslynNvimConfig
|
||||
opts = {
|
||||
-- your configuration comes here; leave empty for default settings
|
||||
},
|
||||
ft = "cs"
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user