feat(neovim): add csharp support

This commit is contained in:
Alexandre Cavalheiro 2024-09-30 19:28:55 -03:00
parent 935be8d906
commit 03f9f32099
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
4 changed files with 8 additions and 1 deletions

View file

@ -59,6 +59,10 @@ in
clang-tools clang-tools
gcc # Needed for treesitter gcc # Needed for treesitter
# C#
csharp-ls
csharpier
# HTML/CSS/JSON # HTML/CSS/JSON
emmet-ls emmet-ls
vscode-langservers-extracted vscode-langservers-extracted

View file

@ -59,6 +59,7 @@ in
"basedpyright", "basedpyright",
"clangd", "clangd",
"cmake", "cmake",
"csharp_ls",
"cssls", "cssls",
"eslint", "eslint",
"html", "html",

View file

@ -16,10 +16,11 @@ return {
config.sources = { config.sources = {
-- Set a formatter -- Set a formatter
require("none-ls.diagnostics.flake8"), require("none-ls.diagnostics.flake8"),
require("none-ls.formatting.ruff"),
null_ls.builtins.formatting.clang_format, null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.csharpier,
null_ls.builtins.formatting.nixfmt, null_ls.builtins.formatting.nixfmt,
null_ls.builtins.formatting.prettier, null_ls.builtins.formatting.prettier,
require("none-ls.formatting.ruff"),
null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.stylua,
} }
return config -- return final config table return config -- return final config table

View file

@ -8,6 +8,7 @@ return {
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
-- Programming -- Programming
"c", "c",
"c_sharp",
"cmake", "cmake",
"cpp", "cpp",
"css", "css",