Comments (4)
Thanks
I tried to debug it but did not found any clues. I re installed my lsp and it works vert fine now.
Thanks for this awesone plugin.
from goto-preview.
Please link or paste your setup function call. Also, please set debug
to true and then paste or screenshot the result of :mess
in here, that should give you more info on why nothing is happening.
ex:
require("goto-preview").setup {
default_mappings = true,
debug = true,
}
It's probably worth pointing out that this only really works with Neovim's native LSP, and that the specific LSP you are using needs to support the goto definition call (most do).
from goto-preview.
Hello, here is my setup calling. I just added default_mappings = true, debut = true}
as advised:
use {'rmagatti/goto-preview', config = function() require('goto-preview').setup {default_mappings = true, debug = true}end }
Here is the output of :mess
:
border = { "↖", "─", "┐", "│", "┘", "─", "└", "│" },
bufhidden = "wipe",
debug = true,
default_mappings = true,
dismiss_on_move = false,
focus_on_open = true,
force_close = true,
height = 15,
lsp_configs = {
get_config = <function 1>
},
references = {
telescope = {
border = true,
borderchars = {
preview = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
prompt = { "─", "│", " ", "│", "╭", "╮", "│", "│" },
results = { "─", "│", "─", "│", "├", "┤", "╯", "╰" }
},
hide_preview = false,
layout_config = {
height = <function 2>,
preview_cutoff = 1,
width = <function 3>
},
layout_strategy = "center",
results_title = false,
sorting_strategy = "ascending",
theme = "dropdown"
}
},
resizing_mappings = false,
stack_floating_preview_windows = true,
width = 120
}
1 line less; before #1 1 second ago
Already at oldest change
goto-preview: calling new handler
Press ENTER or type command to continue
I am using cmp-nvim-lsp as LSP.
Now gpd
shows
goto-preview: calling new handler
but still nothings happens.
from goto-preview.
From these logs, I can only assume your LSP is not returning any data on the textDocument/definition
call.
The code in goto-preview where you're likely stopping:
goto-preview/lua/goto-preview/lib.lua
Lines 246 to 250 in 778cf60
from goto-preview.
Related Issues (20)
- Keep the last directory structure after close the preview window HOT 7
- [FEATURE] Allow not to automatically initialize telescope HOT 1
- Change border color HOT 1
- How to close only one preview and how to open focused preview in current split but new buffer?
- Setting on `post_open_hook` will be shared if I split window? HOT 1
- [BUG] attempt to index field 'lsp_configs' (a nil value) HOT 9
- [FEATURE]: 'Enter' key in a preview window to close all preview windows and go to the definition,refs, etc HOT 6
- Filename in float window
- Getting "Invalid key" error when go to definition HOT 6
- [FEATURE]: Toggle single preview window and show definition automatically when cursor moving in source window. HOT 5
- Esc to close the floating window (similar functionality as telescope.nvim) HOT 1
- [FEATURE] add `post_close_hook` option which executes after `close_all_win()` HOT 2
- [BUG] Do not work with lazy? HOT 2
- [FEATURE] Better floating window focusing method HOT 1
- [BUG] Preview window won't show if "dismiss_on_move = true" and "focus_on_open = true" HOT 1
- [FEATURE] Close floating window when cursor leaves buffer HOT 3
- [Feature] Only show the first implementation
- Provide an option for making preview window unchangeable. HOT 7
- [BUG] incorrect floating window closed in case multiple floating previews are opened HOT 4
- [FEATURE] Configurable starting zindex 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 goto-preview.