From d53b064c0c32442db9fbfb98a1a544b14d9fbdf8 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 9 Mar 2025 19:12:37 +0800 Subject: [PATCH] feat: add some options to nixvim --- users/modules/de.nix | 8 ++++---- users/modules/programs/nixvim.nix | 21 ++++++++++++++++++++- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/users/modules/de.nix b/users/modules/de.nix index 84e3cc2..ff66b5f 100644 --- a/users/modules/de.nix +++ b/users/modules/de.nix @@ -1,10 +1,10 @@ # Default graphical programs and personalisation { imports = [ - ./programs/firefox.nix - ./programs/kitty.nix - ./programs/hyprland.nix - ./programs/waybar.nix ./programs/dunst.nix + ./programs/firefox.nix + ./programs/hyprland.nix + ./programs/kitty.nix + ./programs/waybar.nix ]; } diff --git a/users/modules/programs/nixvim.nix b/users/modules/programs/nixvim.nix index e2df9f8..5b0bffa 100644 --- a/users/modules/programs/nixvim.nix +++ b/users/modules/programs/nixvim.nix @@ -13,11 +13,30 @@ vimdiffAlias = true; opts = { + # Indentation + autoindent = true; + smartindent = true; + expandtab = true; + smarttab = true; + wrap = false; shiftwidth = 2; + tabstop = 2; + + # Search + hlsearch = true; + ignorecase = true; + incsearch = true; + smartcase = true; # case-sensitive if search contains uppercase + + # Visual number = true; relativenumber = true; + cursorline = true; + visualbell = true; termguicolors = true; - wrap = false; + + # Input + backspace = "indent,eol,start"; }; clipboard.providers.wl-copy.enable = true;