Skip to content

Commit

Permalink
Merge pull request #176 from ksonj/case-sensitivity
Browse files Browse the repository at this point in the history
basic: declare option to set smartcase or ignorecase
  • Loading branch information
NotAShelf authored Oct 28, 2023
2 parents a338e4b + 17d8409 commit e498331
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/basic/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ in {
${optionalString (cfg.leaderKey != null) ''
let mapleader = "${toString cfg.leaderKey}"
''}
${optionalString (cfg.searchCase == "ignore") ''
set nosmartcase
set ignorecase
''}
${optionalString (cfg.searchCase == "smart") ''
set noignorecase
set smartcase
''}
${optionalString (cfg.searchCase == "sensitive") ''
set noignorecase
set nosmartcase
''}
'';
};
}
6 changes: 6 additions & 0 deletions modules/basic/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,11 @@ with builtins; {
};

enableLuaLoader = mkEnableOption "experimental Lua module loader to speed up the start up process";

searchCase = mkOption {
type = types.enum ["ignore" "smart" "sensitive"];
default = "sensitive";
description = "Set the case sensitivity of search";
};
};
}

0 comments on commit e498331

Please sign in to comment.