Comments (6)
@Hoffs It works like a charm now. Thanks for pointing that out.
from omnisharp-extended-lsp.nvim.
had another keymapping pointing to the normal lsp go to definition. Your plugin works fine thank you!
from omnisharp-extended-lsp.nvim.
I got the same error. lua require('omnisharp_extended').lsp_definitions()
also works for me.
Hi @AdamBremholm, could you please re-open this issue? The reason is that the README claims that this command is not necessary for neovim nightly, which implies that lua vim.lsp.buf.definition()
should work.
from omnisharp-extended-lsp.nvim.
The reason is that the README claims that this command is not necessary for neovim nightly, which implies that lua vim.lsp.buf.definition() should work
Hi @pluma9 , have you set the handler part of the config?
from omnisharp-extended-lsp.nvim.
@Hoffs Yes, I have (I guess this is the reason why I can do lua require('omnisharp_extended').lsp_definitions()
). My config:
local pid = vim.fn.getpid()
local omnisharp_bin = "D:\\programs\\omnisharp\\OmniSharp.exe"
local omnisharp_cmd = { omnisharp_bin, "--languageserver", "--hostPID", tostring(pid)}
require'lspconfig'.omnisharp.setup{
cmd = omnisharp_cmd,
on_new_config = function(new_config,new_root_dir)
new_config.cmd = omnisharp_cmd
end,
on_attach = on_attach,
root_dir = function(file, _)
if file:sub(-#".csx") == ".csx" then
return util.path.dirname(file)
end
return util.root_pattern("*.sln")(file) or util.root_pattern("*.csproj")(file)
end,
handler = {
["textDocument/definition"] = require('omnisharp_extended').handler,
},
}
from omnisharp-extended-lsp.nvim.
@pluma9 based on your config snippet, you have handler =
, but it should be handlers =
(see https://neovim.io/doc/user/lsp.html#lsp-handler-configuration , part following if using 'nvim-lspconfig'...
). Being able to call lua require('omnisharp_extended').lsp_definitions()
just means that plugin itself is installed/available.
from omnisharp-extended-lsp.nvim.
Related Issues (19)
- Multiple projects can have inconsistent project name HOT 1
- Error when trying to get definition without results HOT 2
- Return from function if handle_locations_telescope returns true
- GotoDefinition from external Libraries HOT 1
- Error if telescope plugin is not installed HOT 2
- Handler for `textDocument/reference` when source generators are involved? HOT 6
- Error when invoking HOT 12
- Fixup semantic tokens HOT 1
- vim.lsp.buf.definition fails HOT 4
- Broken link to "nvim-lspconfig" in README.md
- handler function can't handle `require("telescope.builtin").lsp_definitions()` HOT 2
- Cannot find the function in same $metafile$? HOT 2
- Options for how to manage buffers HOT 2
- Add windows support HOT 2
- Can this plugin support csharpl_ls HOT 3
- Thoughts on not attaching the lsp client to the assembly/decompiled buffer? HOT 2
- Indicate decompilation may require omnisharp.json->EnableDecompilationSupport HOT 1
- Error executing vim.schedule lua callback: ...t/omnisharp-extended-lsp.nvim/lua/omnisharp_extended.lua:56: Vim(append):Error executing lua callback: ...r-textobjects/lua/ nvim-treesitter/textobjects/select.lua:59: attempt to concatenate local 'query' (a table value) stack traceback: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omnisharp-extended-lsp.nvim.