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}})
|
:hl {:fg colors.purple}})
|
||||||
;; Search count
|
;; Search count
|
||||||
(set mod.search-count
|
(set mod.search-count
|
||||||
{:condition (fn []
|
{:condition #(> vim.v.hlsearch 0)
|
||||||
(if (= vim.v.hlsearch 0) false true))
|
|
||||||
:init (fn [self]
|
:init (fn [self]
|
||||||
(set self.count (vim.fn.searchcount {:timeout 5})))
|
(set self.count (vim.fn.searchcount {:timeout 5})))
|
||||||
:provider (fn [self]
|
:provider (fn [self]
|
||||||
|
|
|
@ -20,7 +20,10 @@
|
||||||
WATCHTOWER_POLL_INTERVAL = "28800";
|
WATCHTOWER_POLL_INTERVAL = "28800";
|
||||||
WATCHTOWER_LABEL_ENABLE = "true";
|
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