Comments (2)
I am not 100% now, since it's been a while since I worked on this, but if the buffer is not attached to LSP client, then no LSP commands will work. To begin with, it uses clients that are attached to current buffer at the start of lsp_definitions
. Then, if I am not mistaken, the file is loaded using LSP protocol to the LSP server, so when any command is executed in the file at certain position, LSP server has to have this file loaded. So for metadata files this maybe could be circumvented, by explicitly going with 'o#/v2/gotodefinition
call, instead of regular LSP textDocument/definition
.
So overall, I believe it is not as simple as not attaching the client to the buffer, as that breaks definition lookup from inside metadata files. It maybe could be worked around by using custom command and not lsp handler, but at this moment I haven't felt that current behavior causes me issues, so I don't feel like spending time on this.
from omnisharp-extended-lsp.nvim.
I appreciate your thoughts on this. I haven't felt a need for definition lookups inside the metadata file since disabling LSP on them, but if I change my mind and spend time on getting it working like you're suggesting I'll submit a PR. Thanks again for creating this plugin and putting it out into the world!
from omnisharp-extended-lsp.nvim.
Related Issues (20)
- 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
- Not being able to go to definition HOT 6
- Error if telescope plugin is not installed HOT 2
- Handler for `textDocument/reference` when source generators are involved? HOT 6
- 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
- Jumps to the definition of the type of the symbol under the cursor fail HOT 3
- nvim_win_set_cursor error HOT 4
- Go to definition fails after doing :LspRestart HOT 5
- OmniSharp LSP not working in Neovim for .NET Projects HOT 5
- Omnisharp not working with LazyVim and bloating the lsp.log file (13GB+ and counting) HOT 4
- Using with LSP Saga or Glance
- 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.