Archived
Watch
1
0
Fork
You've already forked nixos
0
configurting plugins via hm doesn't work for me? maybe i'm just stupid.
anyway using vim-plug this way feels pretty ok and it's declarative too
so why not
This commit is contained in:
asnev 2026-07-05 06:04:57 +07:00
commit 8de21f2484
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
3 changed files with 17 additions and 6 deletions

View file

@ -8,7 +8,3 @@ setlocal autoindent
setlocal showmatch
setlocal lispwords+=defmacro,defmethod,define-syntax,let,let*,letre,cond
if exists('*rainbow#load')
call rainbow#load()
endif

View file

@ -30,3 +30,19 @@ set incsearch
set ignorecase
set smartcase
set showmatch
" vim-plug auto-install & config
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'junegunn/vim-plug'
Plug 'luochen1990/rainbow'
Plug 'mhinz/vim-signify'
Plug 'vim-airline/vim-airline'
call plug#end()
let g:rainbow_active = 1

View file

@ -53,7 +53,7 @@ in {
recursive = true;
};
}
(mkVimFt ./dotfiles/vim/vim-tab2 ["javascript" "typescript" "html" "css" "json" "nix"])
(mkVimFt ./dotfiles/vim/vim-tab2 ["javascript" "typescript" "html" "css" "json" "nix" "vim"])
(mkVimFt ./dotfiles/vim/vim-tab4 ["python" "rust" "java" "lua" "c" "cpp" "h" "hpp"])
(mkVimFt ./dotfiles/vim/vim-tabs ["go" "make"])
(mkVimFt ./dotfiles/vim/vim-lisp ["lisp" "scheme" "clojure" "racket"])
@ -64,7 +64,6 @@ in {
vim = {
enable = true;
packageConfigurable = pkgs.unstable.vim-full;
plugins = with pkgs.unstable.vimPlugins; [rainbow];
defaultEditor = true;
};
neovim = {