Migrated old vim/nvim config to nix

This commit is contained in:
Random936
2024-07-23 21:14:00 -07:00
parent 1e997d1061
commit c8a199b9fc
4 changed files with 45 additions and 72 deletions

View File

@@ -10,7 +10,52 @@
};
plugins = with pkgs.vimPlugins; [
supertab
nvim-fzf
vim-airline
# COC packages.
coc-sh
coc-css
coc-html
coc-json
coc-yaml
coc-svelte
coc-clangd
coc-docker
coc-tsserver
coc-rust-analyzer
];
extraConfig = ''
" Better smart indenting.
set formatoptions-=cro
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set relativenumber
set nohlsearch
set hidden
set incsearch
set scrolloff=8
set colorcolumn=80
set signcolumn=yes
" Remove arrow keys to train my fingers
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
" FZF key bindings
nnoremap <leader>pf <cmd>Files<cr>
nnoremap <leader>pg <cmd>Rg<cr>
" Supertab start at top of completion list
let g:SuperTabContextDefaultCompletionType = "<c-n>"
'';
};
}