nixos-combined-flake/modules/nixvim/plugins/noice.nix

80 lines
1.8 KiB
Nix

{
plugins.noice = {
enable = true;
settings = {
cmdline = {
view = "cmdline";
format = {
cmdline = {
pattern = "^:";
icon = "";
lang = "vim";
};
search_down = {
kind = "search";
pattern = "^/";
icon = "󰍉 ";
lang = "regex";
};
search_up = {
kind = "search";
pattern = "^%?";
icon = "󰍉 ";
lang = "regex";
};
filter = {
pattern = "^:%s*!";
icon = "$";
lang = "bash";
};
lua = {
pattern = [ "^:%s*lua%s+" "^:%s*lua%s*=%s*" "^:%s*=%s*" ];
icon = "";
lang = "lua";
};
help = {
pattern = "^:%s*he?l?p?%s+";
icon = "";
};
input = { };
};
};
lsp = {
override = {
"vim.lsp.util.convert_input_to_markdown_lines" = true;
"vim.lsp.util.stylize_markdown" = true;
"cmp.entry.get_documentation" = true;
};
hover = {
enabled = true;
view = "hover";
};
};
presets = {
bottom_search = true;
command_palette = true;
long_message_to_split = false;
inc_rename = false;
lsp_doc_border = true;
};
popupmenu = {
enabled = true;
backend = "cmp";
};
views = {
hover = {
border = {
style = "none";
padding = [ 0 0 ];
};
filter_options = { };
win_options = {
winhighlight = "NormalFloat:NormalFloat,FloatBorder:FloatBorder";
};
};
};
};
};
}