From ac26979167348fc1b86fd98b81ebaed9e14a836f Mon Sep 17 00:00:00 2001 From: Shawn Peery Date: Wed, 15 May 2024 13:23:31 -0600 Subject: [PATCH] Trying to make C# work but no success. Going to download LunarVim and see how it goes --- init.lua | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index a182828e..72e4d31b 100644 --- a/init.lua +++ b/init.lua @@ -225,6 +225,17 @@ vim.opt.rtp:prepend(lazypath) -- -- NOTE: Here is where you install your plugins. require('lazy').setup({ + + 'hadronized/hop.nvim', + + 'hrsh7th/nvim-cmp', + 'razzmatazz/csharp-language-server', + 'onsails/lspkind.nvim', + 'hrsh7th/cmp-buffer', + 'hrsh7th/cmp-path', + 'hrsh7th/cmp-nvim-lua', + 'hrsh7th/cmp-nvim-lsp', + 'saadparwaiz1/cmp_luasnip', -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically @@ -556,7 +567,7 @@ require('lazy').setup({ local servers = { -- clangd = {}, -- gopls = {}, - -- pyright = {}, + pyright = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- @@ -565,6 +576,9 @@ require('lazy').setup({ -- -- But for many setups, the LSP (`tsserver`) will work just fine -- tsserver = {}, + -- omnisharp = {}, + csharp_ls = {}, + -- lua_ls = { @@ -600,6 +614,7 @@ require('lazy').setup({ require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-lspconfig').setup { + ensure_installed = { 'tsserver' }, handlers = { function(server_name) local server = servers[server_name] or {} @@ -748,9 +763,13 @@ require('lazy').setup({ -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps }, sources = { + + { name = 'nvim_lua' }, { name = 'nvim_lsp' }, - { name = 'luasnip' }, { name = 'path' }, + { name = 'luasnip' }, + { name = 'buffer' }, + { name = 'csharp_ls' }, }, } end,