feat: all yanky and debugprint
This commit is contained in:
parent
eaf110c96f
commit
63bbeaca3b
7 changed files with 221 additions and 7 deletions
|
|
@ -2,6 +2,138 @@
|
|||
programs.nixvim = {
|
||||
plugins.noice = {
|
||||
enable = true;
|
||||
|
||||
# Hides the title above noice boxes
|
||||
cmdline = {
|
||||
format = {
|
||||
cmdline = {
|
||||
pattern = "^:";
|
||||
icon = "";
|
||||
lang = "vim";
|
||||
opts = {
|
||||
border = {
|
||||
text = {
|
||||
top = "Cmd";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
search_down = {
|
||||
kind = "search";
|
||||
pattern = "^/";
|
||||
icon = " ";
|
||||
lang = "regex";
|
||||
};
|
||||
search_up = {
|
||||
kind = "search";
|
||||
pattern = "^%?";
|
||||
icon = " ";
|
||||
lang = "regex";
|
||||
};
|
||||
filter = {
|
||||
pattern = "^:%s*!";
|
||||
icon = "";
|
||||
lang = "bash";
|
||||
opts = {
|
||||
border = {
|
||||
text = {
|
||||
top = "Bash";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
lua = {
|
||||
pattern = "^:%s*lua%s+";
|
||||
icon = "";
|
||||
lang = "lua";
|
||||
};
|
||||
help = {
|
||||
pattern = "^:%s*he?l?p?%s+";
|
||||
icon = "";
|
||||
};
|
||||
input = {};
|
||||
};
|
||||
};
|
||||
|
||||
messages = {
|
||||
view = "mini";
|
||||
viewError = "mini";
|
||||
viewWarn = "mini";
|
||||
};
|
||||
|
||||
lsp = {
|
||||
override = {
|
||||
"vim.lsp.util.convert_input_to_markdown_lines" = true;
|
||||
"vim.lsp.util.stylize_markdown" = true;
|
||||
"cmp.entry.get_documentation" = true;
|
||||
};
|
||||
|
||||
progress.enabled = true;
|
||||
signature.enabled = true;
|
||||
};
|
||||
|
||||
popupmenu.backend = "nui";
|
||||
# Doesn't support the standard cmdline completions
|
||||
# popupmenu.backend = "cmp";
|
||||
|
||||
presets = {
|
||||
bottom_search = false;
|
||||
command_palette = true;
|
||||
long_message_to_split = true;
|
||||
inc_rename = true;
|
||||
lsp_doc_border = true;
|
||||
};
|
||||
|
||||
routes = [
|
||||
{
|
||||
filter = {
|
||||
event = "msg_show";
|
||||
kind = "search_count";
|
||||
};
|
||||
opts = {
|
||||
skip = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
# skip progress messages from noisy servers
|
||||
filter = {
|
||||
event = "lsp";
|
||||
kind = "progress";
|
||||
cond.__raw = ''
|
||||
function(message)
|
||||
local client = vim.tbl_get(message.opts, 'progress', 'client')
|
||||
local servers = { 'jdtls' }
|
||||
|
||||
for index, value in ipairs(servers) do
|
||||
if value == client then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
opts = {
|
||||
skip = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
views = {
|
||||
cmdline_popup = {
|
||||
border = {
|
||||
style = "single";
|
||||
};
|
||||
};
|
||||
|
||||
confirm = {
|
||||
border = {
|
||||
style = "single";
|
||||
text = {
|
||||
top = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue