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.
@ -954,7 +955,7 @@ require('lazy').setup({
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
-- { import = 'custom.plugins' }, -- { import = 'custom.plugins' },
}, { }, {
ui = { ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the -- If you are using a Nerd Font: set icons to an empty table which will use the
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table -- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
@ -974,7 +975,7 @@ require('lazy').setup({
lazy = '💤 ', lazy = '💤 ',
}, },
}, },
}) })
-- The line beneath this is called `modeline`. See `:help modeline` -- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et