From 25a88599c11f6d7a99b2906afddbada8d197e623 Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Fri, 7 Aug 2026 14:33:48 +1000 Subject: [PATCH] bloocky config and fixes --- flake.nix | 6 ++++++ plugin/03_terminal.lua | 2 +- plugin/24_completion.lua | 1 - plugin/29_bloocky.lua | 19 ++++++++++++++++++- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 53117d5..00ad477 100644 --- a/flake.nix +++ b/flake.nix @@ -242,6 +242,12 @@ ''; smoke-test = pkgs.runCommand "smoke-test" {} '' + # The Nix build sandbox has a read-only HOME; point XDG dirs at a + # writable location so vim.lsp/shaDa can write state headlessly. + export XDG_CONFIG_HOME=$TMPDIR/xdg-config + export XDG_STATE_HOME=$TMPDIR/xdg-state + export XDG_CACHE_HOME=$TMPDIR/xdg-cache + export XDG_DATA_HOME=$TMPDIR/xdg-data BINARY_PATH="${defaultNvimPkg}/bin/vv" "$BINARY_PATH" --headless -c "luafile ${./tests/smoke.lua}" -c "qa!" touch $out diff --git a/plugin/03_terminal.lua b/plugin/03_terminal.lua index 95d7a29..43a53a8 100644 --- a/plugin/03_terminal.lua +++ b/plugin/03_terminal.lua @@ -18,7 +18,7 @@ local defaults = { duckdb = "duckdb", julia = "julia", python = "ipython", - shell = "echo 'Hello " .. vim.env.USER .. "!'", + shell = "echo 'Hello " .. (vim.env.USER or "user") .. "!'", } -- Registry of terminal commands diff --git a/plugin/24_completion.lua b/plugin/24_completion.lua index 38e57f2..9e70b27 100644 --- a/plugin/24_completion.lua +++ b/plugin/24_completion.lua @@ -29,7 +29,6 @@ end local function get_blink_fuzzy_setting() return { sorts = { "exact", "score", "sort_text" }, - use_frecency = true, use_proximity = true, } end diff --git a/plugin/29_bloocky.lua b/plugin/29_bloocky.lua index ec15b5d..5e6a3ea 100644 --- a/plugin/29_bloocky.lua +++ b/plugin/29_bloocky.lua @@ -19,8 +19,25 @@ later(function() return end require('bloocky').setup({ + week_start = "monday", + window = { + -- Width per view: fraction of the editor width (or absolute columns if > 1). + -- A single number applies to every view. + width = { + month = 0.99, + week = 0.99, + day = 0.8, + }, + border = "rounded", + }, + integrations = { + dooing = { + enabled = true, -- show Dooing todos on their due date + show_done = false, -- also show completed todos + }, + }, keymaps = { toggle = 'cb', }, }) -end) \ No newline at end of file +end)