Skip to content

integrating csharpls-extended-lsp.nvim with pick #1537

Closed Answered by amirongit
amirongit asked this question in Q&A
Discussion options

You must be logged in to vote

well that was easier & at the same time, harder than I expected!

local pick = require('mini.pick')
local cslsex = require('csharpls_extended')
local cslsex_utils = require("csharpls_extended.utils")


local function cslsex_handler(err, result, ctx)
    local client = cslsex.get_csharpls_client()
    local fetched = {}
    local offset_encoding = vim.lsp.get_client_by_id(ctx.client_id).offset_encoding
    local locations = cslsex.textdocument_definition_to_locations(result)
    for _, loc in ipairs(locations) do
        local uri = cslsex_utils.urldecode(loc.uri)
        if not cslsex.is_lsp_url(uri) then
            table.insert(fetched, {
                path = vim.uri_to_fname(loc.uri),…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@amirongit
Comment options

@echasnovski
Comment options

@amirongit
Comment options

Answer selected by amirongit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.pick mini.extra
2 participants