wip
This commit is contained in:
parent
8495dc730f
commit
3d64ef464a
1866
modules/vim/options.nix
Normal file
1866
modules/vim/options.nix
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -1,22 +1,13 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let options = import ./options.nix { inherit lib; }; in
|
||||||
{
|
{
|
||||||
options.vim = with lib; with types; {
|
options.vim = with lib; with types; {
|
||||||
g = mkOption {
|
g = mkOption {
|
||||||
type = attrsOf (oneOf [ str bool number ]);
|
type = attrsOf (oneOf [ str bool number ]);
|
||||||
default = { };
|
default = { };
|
||||||
};
|
};
|
||||||
opt = mkOption {
|
opt = options.all;
|
||||||
type = attrsOf anything;
|
|
||||||
default = { };
|
|
||||||
description = ''
|
|
||||||
A special interface |vim.opt| exists for conveniently interacting with list-
|
|
||||||
and map-style option from Lua: It allows accessing them as Lua tables and
|
|
||||||
offers object-oriented method for adding and removing entries.
|
|
||||||
|
|
||||||
`:help vim.opt`
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: think more about vim.cmd
|
# TODO: think more about vim.cmd
|
||||||
namedCmd = mkOption {
|
namedCmd = mkOption {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user