1
0
Fork 0

nvim: Improve search count statusline condition

This commit is contained in:
Daniel Kempkens 2022-08-17 23:18:53 +02:00
parent 96daaa9f77
commit 9799cea989
2 changed files with 5 additions and 3 deletions

View file

@ -273,8 +273,7 @@
:hl {:fg colors.purple}})
;; Search count
(set mod.search-count
{:condition (fn []
(if (= vim.v.hlsearch 0) false true))
{:condition #(> vim.v.hlsearch 0)
:init (fn [self]
(set self.count (vim.fn.searchcount {:timeout 5})))
:provider (fn [self]

View file

@ -20,7 +20,10 @@
WATCHTOWER_POLL_INTERVAL = "28800";
WATCHTOWER_LABEL_ENABLE = "true";
};
volumes = [ "/var/run/docker.sock:/var/run/docker.sock" ];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"/root/.docker/config.json:/config.json:ro"
];
};
};