nvim/plugins/ui.nix

54 lines
1.5 KiB
Nix

{...}: {
vim = {
visuals.indent-blankline.enable = true;
mini = {
icons.enable = true;
surround.enable = true;
};
luaConfigRC.mini-icons-mock = ''
require("mini.icons").mock_nvim_web_devicons()
'';
binds.whichKey = {
enable = true;
setupOpts.delay = 300;
};
ui.noice = {
enable = true;
setupOpts = {
lsp.override = {
"vim.lsp.util.convert_input_to_markdown_lines" = true;
"vim.lsp.util.stylize_markdown" = true;
};
presets = {
lsp_doc_border = true;
bottom_search = true;
long_message_to_split = true;
inc_rename = true;
};
messages.enabled = false;
};
};
dashboard.alpha = {
enable = true;
theme = "dashboard";
};
luaConfigRC.alpha-buttons = ''
local dashboard = require("alpha.themes.dashboard")
dashboard.section.buttons.val = {
dashboard.button("e", " New file", ":ene <BAR> startinsert<CR>"),
dashboard.button(",ff", " Find file", ":FzfLua files<CR>"),
dashboard.button(",fo", " Recently opened", ":FzfLua oldfiles<CR>"),
dashboard.button(",fg", " Find word", ":FzfLua live_grep<CR>"),
dashboard.button(",fp", " Open session", ":SessionManager load_session<CR>"),
dashboard.button("q", " Quit", ":qa<CR>"),
}
require("alpha").setup(dashboard.config)
'';
};
}