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

failing to fix vimrc

This commit is contained in:
asnev 2026-07-04 17:01:47 +07:00
commit 4e650b7619
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
3 changed files with 23 additions and 11 deletions

View file

@ -10,7 +10,7 @@ syntax on
set ruler
set showcmd
set showmode
set laststatus=2
set laststatus=1
set wildmenu
set wildmode=longest,list,full
set ttyfast
@ -19,11 +19,11 @@ set lazyredraw
filetype plugin indent on
set autoindent
set smartindent
set expandtab
set smarttab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set smarttab
set hlsearch
set incsearch
@ -31,16 +31,15 @@ set ignorecase
set smartcase
set showmatch
let g:indentLine_enabled = 1
let g:indentLine_char = "╎"
let g:indentLine_setColors = 1
augroup LispIndent
autocmd!
autocmd FileType lisp,clojure,scheme,racket setlocal lisp autoindent showmatch expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd FileType lisp,clojure,scheme,racket setlocal lispwords+=defmacro,defmethod,define-syntax,let,let*,letrec,cond
augroup END
augroup LanguageIndentSettings
augroup LanguageIndent
autocmd!
autocmd FileType javascript,typescript,html,css,json,nix setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab
autocmd FileType python,rust setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
autocmd FileType go,make setlocal tabstop=4 shiftwidth=4 noexpandtab
autocmd FileType lisp,clojure,scheme,racket setlocal lisp nosmartindent showmatch tabstop=2 shiftwidth=2 softtabstop=2 expandtab
autocmd FileType lisp,clojure,scheme,racket setlocal lispwords+=defmacro,defmethod
augroup END

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

@ -24,6 +24,10 @@
file = {
".vimrc".source = ./dotfiles/vimrc;
".vim/after/ftplugin/lisp.vim".source = ./dotfiles/vimrc-lisp;
".vim/after/ftplugin/scheme.vim".source = ./dotfiles/vimrc-lisp;
".vim/after/ftplugin/clojure.vim".source = ./dotfiles/vimrc-lisp;
".vim/after/ftplugin/racket.vim".source = ./dotfiles/vimrc-lisp;
".config/fastfetch/config.jsonc".source = ./dotfiles/fastfetch.jsonc;
".config/helix/config.toml".source = ./dotfiles/helix.toml;
".config/helix/languages.toml".source = ./dotfiles/helix-languages.toml;
@ -48,7 +52,6 @@
enable = true;
packageConfigurable = pkgs.unstable.vim-full;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [indentLine];
};
git = {
enable = true;