Watch
1
0
Fork
You've already forked chitin
0

added Vim

`vim-classic' to be exact
This commit is contained in:
asnev 2026-11-13 08:26:40 +07:00
commit 3a69563f1b
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
2 changed files with 41 additions and 1 deletions

View file

@ -240,7 +240,7 @@ If the new path's directories does not exist, create them."
;; Misc. UI tweaks
;(blink-cursor-mode -1) ; Steady cursor
;(pixel-scroll-precision-mode) ; Smooth scrolling
(pixel-scroll-precision-mode) ; Smooth scrolling
;; If you use a mouse and scrolling seems a little jittery, you might
;; want to set this to `nil':
;(setopt pixel-scroll-precision-interpolate-mice nil)

40
modules/vim/vim.nix Normal file
View file

@ -0,0 +1,40 @@
{
flake.modules.homeManager.primaryUser = {pkgs, ...}: {
programs.vim = {
enable = true;
packageConfigurable = pkgs.unstable.vim-classic;
defaultEditor = true;
plugins = with pkgs.unstable.vimPlugins; [
vim-sensible
vim-sleuth
gruvbox
rainbow
parinfer-rust
];
settings = {
background = "dark";
copyindent = false;
expandtab = true;
hidden = true;
history = 1000;
ignorecase = true;
mouse = "a";
mousemodel = "popup";
number = true;
relativenumber = true;
shiftwidth = 4;
smartcase = true;
tabstop = 4;
undofile = false;
};
extraConfig = ''
let g:gruvbox_italic = '1'
let g:gruvbox_italicize_strings = '1'
colorscheme gruvbox
'';
};
};
}