Skip to content

Commit

Permalink
Better C# go to definition
Browse files Browse the repository at this point in the history
  • Loading branch information
NonlinearFruit committed Apr 26, 2023
1 parent de3f507 commit 004049a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions nvim/after/plugin/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ lsp_config.omnisharp.setup({
end
on_attach(client, bufnr)
end,
--capabilities = capabilities,
root_dir = lsp_config.util.root_pattern(".sln", ".csproj", ".git"),
capabilities = capabilities,
handers = {
["textDocument/definition"] = require('omnisharp_extended').handler
}
})

vim.keymap.set('n', '<leader>lsp', '<cmd>Mason<cr>', { desc = '[LSP] Manage language server installs' })
5 changes: 3 additions & 2 deletions nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ return require('packer').startup(function(use)
run = function() vim.fn['firenvim#install'](0) end
}

-- C# LSP
use 'OmniSharp/omnisharp-vim'
-- C# LSP with extra sugar
-- use 'OmniSharp/omnisharp-vim'
use 'Hoffs/omnisharp-extended-lsp.nvim'

-- Fun CellularAutomaton make_it_rain && game_of_life
use 'eandrju/cellular-automaton.nvim'
Expand Down

0 comments on commit 004049a

Please sign in to comment.