failing to fix vimrc
This commit is contained in:
parent
9b4f03767e
commit
4e650b7619
3 changed files with 23 additions and 11 deletions
|
|
@ -10,7 +10,7 @@ syntax on
|
||||||
set ruler
|
set ruler
|
||||||
set showcmd
|
set showcmd
|
||||||
set showmode
|
set showmode
|
||||||
set laststatus=2
|
set laststatus=1
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wildmode=longest,list,full
|
set wildmode=longest,list,full
|
||||||
set ttyfast
|
set ttyfast
|
||||||
|
|
@ -19,11 +19,11 @@ set lazyredraw
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
set autoindent
|
set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
|
set expandtab
|
||||||
|
set smarttab
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set expandtab
|
|
||||||
set smarttab
|
|
||||||
|
|
||||||
set hlsearch
|
set hlsearch
|
||||||
set incsearch
|
set incsearch
|
||||||
|
|
@ -31,16 +31,15 @@ set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
set showmatch
|
set showmatch
|
||||||
|
|
||||||
let g:indentLine_enabled = 1
|
augroup LispIndent
|
||||||
let g:indentLine_char = "╎"
|
autocmd!
|
||||||
let g:indentLine_setColors = 1
|
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!
|
||||||
autocmd FileType javascript,typescript,html,css,json,nix setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab
|
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 python,rust setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
|
||||||
autocmd FileType go,make setlocal tabstop=4 shiftwidth=4 noexpandtab
|
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
|
augroup END
|
||||||
|
|
|
||||||
10
users/coyote/dotfiles/vimrc-lisp
Normal file
10
users/coyote/dotfiles/vimrc-lisp
Normal 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
|
||||||
|
|
@ -24,6 +24,10 @@
|
||||||
|
|
||||||
file = {
|
file = {
|
||||||
".vimrc".source = ./dotfiles/vimrc;
|
".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/fastfetch/config.jsonc".source = ./dotfiles/fastfetch.jsonc;
|
||||||
".config/helix/config.toml".source = ./dotfiles/helix.toml;
|
".config/helix/config.toml".source = ./dotfiles/helix.toml;
|
||||||
".config/helix/languages.toml".source = ./dotfiles/helix-languages.toml;
|
".config/helix/languages.toml".source = ./dotfiles/helix-languages.toml;
|
||||||
|
|
@ -48,7 +52,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
packageConfigurable = pkgs.unstable.vim-full;
|
packageConfigurable = pkgs.unstable.vim-full;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
plugins = with pkgs.vimPlugins; [indentLine];
|
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Reference in a new issue