modules/neoformat: add possibility to overwrite base configs
This commit is contained in:
parent
6030f1df18
commit
8933762c5c
1 changed files with 8 additions and 6 deletions
|
@ -11,14 +11,16 @@
|
|||
}:
|
||||
|
||||
let inherit (builtins) concatLists attrValues mapAttrs; in
|
||||
let
|
||||
baseConfigs = {
|
||||
neoformat_try_node_exe = 1;
|
||||
neoformat_only_msg_on_error = 1;
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
neoformat = concatLists [
|
||||
[
|
||||
(vim.g "neoformat_try_node_exe" 1)
|
||||
(vim.g "neoformat_only_msg_on_error" 1)
|
||||
]
|
||||
|
||||
(attrValues (mapAttrs vim.g configs))
|
||||
(attrValues (mapAttrs vim.g (baseConfigs // configs)))
|
||||
|
||||
[
|
||||
(vim.cmd' ''
|
||||
|
|
Reference in a new issue