This repository has been archived on 2022-02-18. You can view files and clone it, but cannot push or open issues or pull requests.
lemondwm/.config/nvim/init.vim

59 lines
1.1 KiB
VimL
Executable file

" basic vim settings (tabs, line numbers, etc.)
set tabstop=4
set shiftwidth=4
set softtabstop=4
set showtabline=2
set mouse=a
set number
set expandtab
set cursorline
" plugins
call plug#begin()
Plug 'sainnhe/sonokai'
Plug 'preservim/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
call plug#end()
" color fix
if has('termguicolors')
set termguicolors
endif
" sonokai theme configuration
let g:sonokai_style = 'shusia'
let g:sonokai_enable_italic = 0
let g:sonokai_disable_italic_comment = 1
colorscheme sonokai
" tabs
map <C-z> :tabp<CR>
map <C-x> :tabn<CR>
map <C-c> :tabnew<CR>
" save/quit
command Dw :w !doas dd of=%
nnoremap <C-s> :w<CR>
nnoremap <C-q> :q<CR>
" NERDTree
nnoremap <C-t> :NERDTreeToggle<CR>
let g:NERDTreeAutoDeleteBuffer = 1
let g:NERDTreeMinimalUI = 1
let g:NERDTreeQuitOnOpen = 1
let g:NERDTreeDirArrowExpandable = '>'
let g:NERDTreeDirArrowCollapsible = '<'
" treesitter
lua << EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = { "c", "toml" },
highlight = {
enable = true,
}
}
EOF