nvim: Improve search count statusline condition
This commit is contained in:
parent
96daaa9f77
commit
9799cea989
2 changed files with 5 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue