added Vim
`vim-classic' to be exact
This commit is contained in:
parent
7c4173a3c5
commit
3a69563f1b
2 changed files with 41 additions and 1 deletions
|
|
@ -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
40
modules/vim/vim.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue