aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development/nixvim/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-15 20:32:36 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-15 20:32:36 +0530
commit23616c2e13f63f0262d64538032b98ce83cc0ec2 (patch)
tree3ea56e8c12c6735b5dddb34b5699c59c00066b0f /modules/development/nixvim/default.nix
parent01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95 (diff)
downloadhome-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.tar.gz
home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.zip
feat: renamed the options to reflect their changed directory stucture
Renamed the options for the configurations based on the sub-module that they belong to
Diffstat (limited to 'modules/development/nixvim/default.nix')
-rw-r--r--modules/development/nixvim/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/development/nixvim/default.nix b/modules/development/nixvim/default.nix
index c7978d4..6cd0957 100644
--- a/modules/development/nixvim/default.nix
+++ b/modules/development/nixvim/default.nix
@@ -8,8 +8,13 @@
./plugins
];
- config = {
+ options.development.nixvim = {
+ enable = lib.mkEnableOption "Enables nixvim.";
+ };
+
+ config = lib.mkIf config.development.nixvim.enable {
programs.nixvim = {
+ enable = true;
defaultEditor = true;
opts = {
number = true;
@@ -79,14 +84,13 @@
update_in_insert = false;
float = {
border = "rounded";
- source = true; # Show which LSP the diagnostic is from
+ source = true;
header = "";
prefix = "";
};
};
};
- # Show diagnostics float on cursor hold
autoCmd = [
{
event = [ "CursorHold" ];