mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/lsp-signature: init
This commit is contained in:
parent
13564727c5
commit
c32a43a862
2 changed files with 294 additions and 0 deletions
82
tests/test-sources/plugins/by-name/lsp-signature/default.nix
Normal file
82
tests/test-sources/plugins/by-name/lsp-signature/default.nix
Normal file
|
@ -0,0 +1,82 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lsp-signature.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.lsp-signature = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
debug = true;
|
||||
log_path = "~/.config/TestDirectory/lsp_signature.log";
|
||||
verbose = true;
|
||||
bind = true;
|
||||
doc_lines = 5;
|
||||
|
||||
max_height = 10;
|
||||
max_width = 45;
|
||||
wrap = false;
|
||||
floating_window = true;
|
||||
floating_window_above_cur_line = false;
|
||||
floating_window_off_x = "function() return 1 end";
|
||||
fix_pos = true;
|
||||
hint_inline = "function() return 'inline' end";
|
||||
handler_opts.border = "shadow";
|
||||
extra_trigger_chars = [ "$" ];
|
||||
|
||||
shadow_blend = 1;
|
||||
select_signature_key = "<C-c>";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.lsp-signature = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
debug = false;
|
||||
log_path = # lua
|
||||
''
|
||||
vim.fn.stdpath("cache") .. "/lsp_signature.log"
|
||||
'';
|
||||
verbose = false;
|
||||
bind = true;
|
||||
doc_lines = 10;
|
||||
max_height = 12;
|
||||
max_width = 80;
|
||||
wrap = true;
|
||||
floating_window = true;
|
||||
floating_window_above_cur_line = true;
|
||||
floating_window_off_x = 1;
|
||||
floating_window_off_y = 0;
|
||||
close_timeout = 4000;
|
||||
fix_pos = false;
|
||||
hint_enable = true;
|
||||
hint_prefix = "🐼 ";
|
||||
hint_scheme = "String";
|
||||
hint_inline = # lua
|
||||
''
|
||||
function() return false end
|
||||
'';
|
||||
hi_parameter = "LspSignatureActiveParameter";
|
||||
handler_opts.border = "rounded";
|
||||
always_trigger = false;
|
||||
auto_close_after = "nil";
|
||||
extra_trigger_chars = [ ];
|
||||
zindex = 200;
|
||||
padding = "";
|
||||
transparency = "nil";
|
||||
shadow_blend = 36;
|
||||
shadow_guibg = "Green";
|
||||
time_interval = 200;
|
||||
toggle_key = null;
|
||||
toggle_flip_floatwin_setting = false;
|
||||
select_signature_key = null;
|
||||
move_cursor_key = null;
|
||||
keymaps = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue