Archived
Watch
1
0
Fork
You've already forked nixos
0

back to basic

just back to a basic vim setup i give up
This commit is contained in:
asnev 2026-07-05 19:24:27 +07:00
commit 0f7b84a789
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
8 changed files with 22 additions and 69 deletions

View file

@ -19,26 +19,17 @@
│   ├── helix │   ├── helix
│   │   ├── helix-languages.toml │   │   ├── helix-languages.toml
│   │   └── helix.toml │   │   └── helix.toml
│   ├── nvim
│   │   ├── init.lua
│   │   ├── LICENSE
│   │   ├── lua
│   │   │   ├── config
│   │   │   │   ├── autocmds.lua
│   │   │   │   ├── keymaps.lua
│   │   │   │   ├── lazy.lua
│   │   │   │   └── options.lua
│   │   │   └── plugins
│   │   │   └── example.lua
│   │   ├── README.md
│   │   └── stylua.toml
│   └── vim │   └── vim
│   ├── vim-lisp │   └── langs
│   ├── vimrc │   ├── lisp.vim
│   ├── vim-tab2 │   ├── tab2.vim
│   ├── vim-tab4 │   ├── tab4.vim
│   └── vim-tabs │   └── tabs.vim
└── home.nix ├── dotfiles.nix
├── home.nix
└── programs
├── neovim.nix
└── vim.nix
13 directories, 27 files 11 directories, 20 files
``` ```

View file

@ -17,9 +17,9 @@ in {
".config/helix/languages.toml".source = ./dotfiles/helix/helix-languages.toml; ".config/helix/languages.toml".source = ./dotfiles/helix/helix-languages.toml;
} }
(mkVim ./dotfiles/vim/langs/tab2.vim ["javascript" "typescript" "html" "css" "json" "nix" "vim"]) (mkVim ./dotfiles/vim/tab2.vim ["javascript" "typescript" "html" "css" "json" "nix" "vim"])
(mkVim ./dotfiles/vim/langs/tab4.vim ["python" "rust" "java" "lua" "c" "cpp" "h" "hpp"]) (mkVim ./dotfiles/vim/tab4.vim ["python" "rust" "java" "lua" "c" "cpp" "h" "hpp"])
(mkVim ./dotfiles/vim/langs/tabs.vim ["go" "make"]) (mkVim ./dotfiles/vim/tabs.vim ["go" "make"])
(mkVim ./dotfiles/vim/langs/lisp.vim ["lisp" "scheme" "clojure" "racket"]) (mkVim ./dotfiles/vim/lisp.vim ["lisp" "scheme" "clojure" "racket"])
]; ];
} }

View file

@ -0,0 +1,10 @@
setlocal expandtab
setlocal tabstop=2
setlocal shiftwidth=2
setlocal softtabstop=2
setlocal lisp
setlocal autoindent
setlocal showmatch
setlocal lispwords+=defmacro,defmethod,define-syntax,let,let*,letre,cond

View file

@ -0,0 +1,4 @@
setlocal expandtab
setlocal tabstop=2
setlocal shiftwidth=2
setlocal softtabstop=2

View file

@ -0,0 +1,4 @@
setlocal expandtab
setlocal tabstop=4
setlocal shiftwidth=4
setlocal softtabstop=4

View file

@ -0,0 +1,4 @@
setlocal tabstop=4
setlocal shiftwidth=4
setlocal noexpandtab

View file

@ -1,6 +1,5 @@
{ {
pkgs, pkgs,
lib,
... ...
}: let }: let
programsDir = ./programs; programsDir = ./programs;

View file

@ -1,6 +1,5 @@
{ {
pkgs, pkgs,
lib,
... ...
}: { }: {
programs.vim = { programs.vim = {
@ -8,17 +7,13 @@
packageConfigurable = pkgs.unstable.vim-full; packageConfigurable = pkgs.unstable.vim-full;
plugins = with pkgs.unstable.vimPlugins; [ plugins = with pkgs.unstable.vimPlugins; [
gruvbox gruvbox
vim-surround
vim-commentary
vim-easymotion
vim-visual-multi
fzf-vim
vim-signify
vim-airline
rainbow rainbow
vim-indent-guides
]; ];
defaultEditor = true; defaultEditor = true;
extraConfig = '' extraConfig = ''
let g:terminal_ansi_colors = ['#282828', '#cc241d', '#98971a', '#d79921', '#458588', '#b16286', '#689d6a', '#a89984', '#928374', '#fb4934', '#b8bb26', '#fabd2f', '#83a598', '#d3869b', '#8ec07c', '#ebdbb2']
set nocompatible set nocompatible
set encoding=utf-8 set encoding=utf-8
set backspace=indent,eol,start set backspace=indent,eol,start
@ -31,7 +26,7 @@
set ruler set ruler
set showcmd set showcmd
set showmode set showmode
set laststatus=2 set laststatus=3
set wildmenu set wildmenu
set wildmode=longest,list,full set wildmode=longest,list,full
set ttyfast set ttyfast
@ -50,50 +45,18 @@
set incsearch set incsearch
set ignorecase set ignorecase
set smartcase set smartcase
set showmatch
" gruvbox " gruvbox
set termguicolors set termguicolors
set background=dark set background=dark
colorscheme gruvbox colorscheme gruvbox
" airline
let g:airline_powerline_fonts = 1
let g:airline_theme = 'gruvbox'
let g:airline_section_a = '''
let g:airline_section_y = '''
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#whitespace#enabled = 1
let g:airline#extensions#signify#enabled = 1
let g:airline#extensions#term#enabled = 0
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
let g:airline#extensions#tabline#show_splits = 0
let g:airline#extensions#tabline#show_tabs = 0
let g:airline#extensions#empty_sections = 1
" rainbow " rainbow
let g:rainbow_active = 1 let g:rainbow_active = 1
" fzf " vim-indent-guides
let $COLORTERM = 'truecolor' let g:indent_guides_enable_on_vim_startup = 1
let $FZF_DEFAULT_OPTS='--reverse --info=inline' let g:indent_guides_start_level = 2
let g:fzf_colors = {}
let g:fzf_colors["fg"] = ["fg", "Normal"]
let g:fzf_colors["bg"] = ["bg", "Normal"]
let g:fzf_colors["hl"] = ["fg", "Comment"]
let g:fzf_colors["fg+"] = ["fg", "CursorLine", "CursorColumn", "Normal"]
let g:fzf_colors["bg+"] = ["bg", "CursorLine", "CursorColumn"]
let g:fzf_colors["hl+"] = ["fg", "Statement"]
let g:fzf_colors["info"] = ["fg", "PreProc"]
let g:fzf_colors["border"] = ["fg", "Ignore"]
let g:fzf_colors["prompt"] = ["fg", "Conditional"]
let g:fzf_colors["pointer"] = ["fg", "Exception"]
let g:fzf_colors["marker"] = ["fg", "Keyword"]
let g:fzf_colors["spinner"] = ["fg", "Label"]
let g:fzf_colors["header"] = ["fg", "Comment"]
''; '';
}; };
} }