feat: customizable neovim package

This commit is contained in:
raf 2023-08-01 17:28:06 +03:00
commit fcaed357f4
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
3 changed files with 16 additions and 12 deletions

View file

@ -138,7 +138,7 @@ in {
${optionalString (!cfg.enableEditorconfig) ''
let g:editorconfig = v:false
''}
${optionalString (cfg.spellChecking.enable) ''
${optionalString cfg.spellChecking.enable ''
set spell
set spelllang=${toString cfg.spellChecking.language}
''}

View file

@ -1,11 +1,19 @@
{
pkgs,
lib,
config,
...
}:
with lib;
with builtins; {
options.vim = {
package = mkOption {
type = types.package;
default = pkgs.neovim-unwrapped;
description = ''
The neovim package to use. You will need to use an unwrapped package for this option to work as intended.
'';
};
debugMode = {
enable = mkEnableOption "debug mode";
level = mkOption {