Skip to content

Commit

Permalink
feat(cs): add csharpls-extended-lsp.nvim for better go to definition (
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored Jun 11, 2024
1 parent f071ab0 commit 2dd5c26
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/astrocommunity/pack/cs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This plugin pack does the following:

- Adds `c_sharp` Treesitter parsers
- Adds `csharp_ls` language server
- Adds [`csharpls-extended-lsp.nvim`](https://github.com/Decodetalkers/csharpls-extended-lsp.nvim) for better go to definition/type definition
- Adds the following `null-ls` sources:
- [csharpier](https://github.com/belav/csharpier)
- Adds `coreclr` debug adapters for nvim-dap
18 changes: 18 additions & 0 deletions lua/astrocommunity/pack/cs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ return {
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "csharp_ls" })
end,
},
{
"Decodetalkers/csharpls-extended-lsp.nvim",
dependencies = {
{
"AstroNvim/astrolsp",
opts = {
config = {
csharp_ls = {
handlers = {
["textDocument/definition"] = function(...) require("csharpls_extended").handler(...) end,
["textDocument/typeDefinition"] = function(...) require("csharpls_extended").handler(...) end,
},
},
},
},
},
},
},
{
"jay-babu/mason-nvim-dap.nvim",
optional = true,
Expand Down

0 comments on commit 2dd5c26

Please sign in to comment.