52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{...}: {
|
|
vim = {
|
|
mini = {
|
|
icons.enable = true;
|
|
surround.enable = true;
|
|
indentscope.enable = true;
|
|
files.enable = true;
|
|
};
|
|
|
|
luaConfigRC.mini-icons-mock = ''
|
|
require("mini.icons").mock_nvim_web_devicons()
|
|
'';
|
|
|
|
luaConfigRC.mini-files-close-on-open = ''
|
|
vim.api.nvim_create_autocmd("User", {
|
|
pattern = "MiniFilesBufferCreate",
|
|
callback = function(args)
|
|
local map = function(key)
|
|
vim.keymap.set("n", key, function()
|
|
MiniFiles.go_in({ close_on_file = true })
|
|
end, { buffer = args.data.buf_id })
|
|
end
|
|
map("l")
|
|
map("<CR>")
|
|
end,
|
|
})
|
|
'';
|
|
|
|
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;
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|