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, ... }:
|
||||
|
||||
let options = import ./options.nix { inherit lib; }; in
|
||||
{
|
||||
options.vim = with lib; with types; {
|
||||
g = mkOption {
|
||||
type = attrsOf (oneOf [ str bool number ]);
|
||||
default = { };
|
||||
};
|
||||
opt = mkOption {
|
||||
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`
|
||||
'';
|
||||
};
|
||||
opt = options.all;
|
||||
|
||||
# TODO: think more about vim.cmd
|
||||
namedCmd = mkOption {
|
||||
|
|
Loading…
Reference in New Issue
Block a user