diff --git a/config/ai/codecompanion.nix b/config/ai/codecompanion.nix index aa4c5cd..5caabec 100644 --- a/config/ai/codecompanion.nix +++ b/config/ai/codecompanion.nix @@ -50,11 +50,6 @@ enable = true; }; - plugins.mini = { - enable = true; - modules.diff.options.view.style = "sign"; - }; - plugins.blink-cmp = { enable = true; settings = { diff --git a/config/default.nix b/config/default.nix index 129c24d..ae307db 100644 --- a/config/default.nix +++ b/config/default.nix @@ -4,6 +4,7 @@ ./clipboard.nix ./color.nix + ./mini.nix ./conform.nix ./dadbod.nix ./flash.nix @@ -270,6 +271,8 @@ extraConfigLua = '' local opt = vim.opt + opt.shortmess:append('I') + -- Persist undo history between sessions opt.undofile = true; diff --git a/config/mini.nix b/config/mini.nix new file mode 100644 index 0000000..e276d27 --- /dev/null +++ b/config/mini.nix @@ -0,0 +1,39 @@ +{ + plugins.mini = { + enable = true; + modules.diff.options.view.style = "sign"; + modules.starter = { + content_hooks = { + "__unkeyed-1.adding_bullet" = { + __raw = "require('mini.starter').gen_hook.adding_bullet()"; + }; + "__unkeyed-2.indexing" = { + __raw = "require('mini.starter').gen_hook.indexing('all', { 'Builtin actions' })"; + }; + "__unkeyed-3.padding" = { + __raw = "require('mini.starter').gen_hook.aligning('center', 'center')"; + }; + }; + evaluate_single = true; + header = '' + ▀█▀ █▀▀ █ █ █▀█ + █ █ █▀█ █ █ + ▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ + ''; + items = { + "__unkeyed-1.buildtin_actions" = { + __raw = "require('mini.starter').sections.builtin_actions()"; + }; + "__unkeyed-2.recent_files_current_directory" = { + __raw = "require('mini.starter').sections.recent_files(10, false)"; + }; + "__unkeyed-3.recent_files" = { + __raw = "require('mini.starter').sections.recent_files(10, true)"; + }; + "__unkeyed-4.sessions" = { + __raw = "require('mini.starter').sections.sessions(5, true)"; + }; + }; + }; + }; +}