This commit is contained in:
Dmitriy Pleshevskiy 2024-05-13 14:30:59 +03:00
parent 8495dc730f
commit 3d64ef464a
Signed by: pleshevskiy
GPG Key ID: 17041163DA10A9A2
2 changed files with 1868 additions and 11 deletions

1866
modules/vim/options.nix Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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 {