Add zig support

This commit is contained in:
Rui Xuan 2024-07-27 08:15:02 +08:00
parent 0d7d0567ab
commit 52d976fbc7
1 changed files with 544 additions and 543 deletions

View File

@ -412,7 +412,7 @@ require('lazy').setup({
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
dependencies = { dependencies = {
-- Automatically install LSPs and related tools to stdpath for Neovim -- Automatically install LSPs and related tools to stdpath for Neovim
{ 'williamboman/mason.nvim', config = true, opts = { ensure_installed = { "csharpier", "netcoredbg" }} }, -- NOTE: Must be loaded before dependants { 'williamboman/mason.nvim', config = true, opts = { ensure_installed = { 'csharpier', 'netcoredbg' } } }, -- NOTE: Must be loaded before dependants
'williamboman/mason-lspconfig.nvim', 'williamboman/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim', 'WhoIsSethDaniel/mason-tool-installer.nvim',
@ -580,17 +580,17 @@ require('lazy').setup({
omnisharp = { omnisharp = {
handlers = { handlers = {
["textDocument/definition"] = function(...) ['textDocument/definition'] = function(...)
return require("omnisharp_extended").handler(...) return require('omnisharp_extended').handler(...)
end, end,
}, },
keys = { keys = {
{ {
"gd", 'gd',
function() function()
require("omnisharp_extended").telescope_lsp_definitions() require('omnisharp_extended').telescope_lsp_definitions()
end, end,
desc = "Goto Definition", desc = 'Goto Definition',
}, },
}, },
enable_roslyn_analyzers = true, enable_roslyn_analyzers = true,
@ -612,6 +612,7 @@ require('lazy').setup({
}, },
}, },
}, },
zls = {},
} }
-- Ensure the servers and tools above are installed -- Ensure the servers and tools above are installed
@ -793,7 +794,7 @@ require('lazy').setup({
end, end,
}, },
{ {
"Issafalcon/neotest-dotnet", 'Issafalcon/neotest-dotnet',
}, },
{ -- You can easily change to a different colorscheme. { -- You can easily change to a different colorscheme.