Comments (9)
Hi, were you able to resolve the issue? I received the same error as you.
from lsp_signature.nvim.
what lsp you are using?
from lsp_signature.nvim.
您使用的是什么 LSP?
I'm using the clangd server. When I normally open and add header files, there's no problem. However, all header files will encounter an issue if I delete a header file.
from lsp_signature.nvim.
I do not think the signature will be active when you edit/delete the header file of c++ source code.
Could you send the minimum vimrc and also the c++ file to reproduce?
Would be helpful if you could send the steps to reproduce and/or a screen recording as well.
from lsp_signature.nvim.
我不认为当您编辑/删除 c++ 源代码的头文件时签名会处于活动状态。你能发送最小的 vimrc 和 c++ 文件来重现吗?如果您也可以发送重现步骤和/或屏幕录制,那将很有帮助。
https://github.com/ray-x/lsp_signature.nvim/assets/76483540/e43917f3-c893-4673-af52-a7a2f38442cc
I'm sorry, but my English is not very good. Also, I'm unsure about whether to use MP4 or GIF on GitHub. Could you please advise?
from lsp_signature.nvim.
I do not think the signature will be active when you edit/delete the header file of c++ source code. Could you send the minimum vimrc and also the c++ file to reproduce? Would be helpful if you could send the steps to reproduce and/or a screen recording as well.
This is my minimum configuration.
local cfg = {
debug = false, -- set to true to enable debug logging
log_path = vim.fn.stdpath("cache") .. "/lsp_signature.log", -- log dir when debug is on
verbose = false, -- show debug line number
bind = true, -- This is mandatory, otherwise border config won't get registered.
doc_lines = 3, -- will show two lines of comment/doc(if there are more than two lines in doc, will be truncated);
max_height = 12, -- max height of signature floating_window
max_width = 80, -- max_width of signature floating_window
noice = false, -- set to true if you using noice to render markdown
wrap = true, -- allow doc/signature text wrap inside floating_window, useful if your lsp return doc/sig is too long
floating_window = true, -- show hint in a floating window, set to false for virtual text only mode
floating_window_above_cur_line = true, -- try to place the floating above the current line when possible Note:
floating_window_off_x = 1, -- adjust float windows x position.
floating_window_off_y = 0, -- adjust float windows y position. e.g -2 move window up 2 lines; 2 move down 2 lines
close_timeout = 4000, -- close floating window after ms when laster parameter is entered
fix_pos = false, -- set to true, the floating window will not auto-close until finish all parameters
hint_enable = true, -- virtual hint enable
hint_prefix = "", -- Panda for parameter, NOTE: for the terminal not support emoji, might crash
hint_scheme = "String",
hi_parameter = "LspSignatureActiveParameter", -- how your parameter will be highlight
handler_opts = {
border = "rounded" -- double, rounded, single, shadow, none, or a table of borders
},
always_trigger = false, -- sometime show signature on new line or in middle of parameter can be confusing, set it to false for #58
auto_close_after = nil, -- autoclose signature float win after x sec, disabled if nil.
extra_trigger_chars = {}, -- Array of extra characters that will trigger signature completion, e.g., {"(", ","}
zindex = 200, -- by default it will be on top of all floating windows, set to <= 50 send it to bottom
padding = '', -- character to pad on left and right of signature can be ' ', or '|' etc
transparency = nil, -- disabled by default, allow floating win transparent value 1~100
shadow_blend = 36, -- if you using shadow as border use this set the opacity
shadow_guibg = 'Black', -- if you using shadow as border use this set the color e.g. 'Green' or '#121315'
timer_interval = 200, -- default timer check interval set to lower value if you want to reduce latency
toggle_key = nil, -- toggle signature on and off in insert mode, e.g. toggle_key = '<M-x>'
select_signature_key = nil, -- cycle to next signature, e.g. '<M-n>' function overloading
move_cursor_key = nil, -- imap, use nvim_set_current_win to move cursor between current win and floating
}
require'lsp_signature'.setup(cfg) -- no need to specify bufnr if you don't use toggle_key
from lsp_signature.nvim.
最好能提供完整的init.lua 文件 (< 100行)。
您可以参考https://github.com/ray-x/lsp_signature.nvim/blob/master/tests/init_pack.lua
录屏可以用gif格式。
我不认为当您编辑/删除 c++ 源代码的头文件时签名会处于活动状态。你能发送最小的 vimrc 和 c++ 文件来重现吗?如果您也可以发送重现步骤和/或屏幕录制,那将很有帮助。
https://github.com/ray-x/lsp_signature.nvim/assets/76483540/e43917f3-c893-4673-af52-a7a2f38442cc I'm sorry, but my English is not very good. Also, I'm unsure about whether to use MP4 or GIF on GitHub. Could you please advise?
from lsp_signature.nvim.
Hi, were you able to resolve the issue? I received the same error as you.
Sorry delay I got disconnected a little bit during holidays
No solution yet, the issue remains.. I actually disabled the lsp signature to stop this annoying msg that keeps poping up all the time
from lsp_signature.nvim.
I do not think the signature will be active when you edit/delete the header file of c++ source code. Could you send the minimum vimrc and also the c++ file to reproduce? Would be helpful if you could send the steps to reproduce and/or a screen recording as well.
I tried the default config and this issue still happens:
require'lsp_signature'.setup()
I noticed other issues were raised for similar issue, I saw one for python but it seems to work normal on my Python files .. not sure why only terraform is having this issue on my end.
update: I just built a minimal config and this issue is no longer happening .. this is weird, not sure what is causing this.
from lsp_signature.nvim.
Related Issues (20)
- always_trigger = true doesnt work HOT 1
- Signature help pops up and blocks the UI when no method/class has been chosen yet HOT 2
- Cursor position outside buffer HOT 7
- max_width is not working HOT 2
- How to trigger GoFmt command on save?
- Trying to get signature on empty line, breaks jedi-lsp server HOT 1
- why the Right parenthesis will in red? HOT 2
- Disable floating window auto show after a while HOT 2
- Floating window keeps turning on and off HOT 11
- Documentation in the floating window gets stuck
- New release/Tagged commit? HOT 1
- Doesn't show signature when i open only a single file, works when i open a directory HOT 3
- Inconsistent syntax highlighting
- Parameter highlighting temporary HOT 1
- Continuously flashing in certain positions HOT 2
- [feat] Allow disabling in certain contexts, e.g. comments
- Attempt to call field 'get_clients' (a nil value) HOT 3
- Show Signature of Current Parameter
- regression on `toggle_float_win()` HOT 3
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 lsp_signature.nvim.