diff options
author | Vitor Gonçalves <vitorg@tilde.team> | 2023-05-21 06:34:37 -0300 |
---|---|---|
committer | Vitor Gonçalves <vitorg@tilde.team> | 2023-05-21 06:34:37 -0300 |
commit | 6a41699d952cb4116603539420353b4225d8c1d0 (patch) | |
tree | 4032b559d694454d49104cdcb3bf2542eedd3973 /dot_config/nvim | |
download | dots-6a41699d952cb4116603539420353b4225d8c1d0.tar.gz |
Initial commit
Diffstat (limited to 'dot_config/nvim')
-rw-r--r-- | dot_config/nvim/init.vim | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dot_config/nvim/init.vim b/dot_config/nvim/init.vim new file mode 100644 index 0000000..efcb432 --- /dev/null +++ b/dot_config/nvim/init.vim @@ -0,0 +1,49 @@ +" *init.vim* + +" removes annoying swap, improves performance and asks for confirmation before write +set noswapfile lazyredraw confirm + +" indentation +filetype plugin indent on +set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smartindent " tab setting +set showmatch ignorecase smartcase + + +set undofile " persist undo +set clipboard=unnamedplus " X clipboard to nvim + +" plugins +call plug#begin() +Plug 'sainnhe/gruvbox-material' " best theme +call plug#end() + +" styling +syntax on +set termguicolors + +set number relativenumber numberwidth=2 cursorline +set conceallevel=3 + +set background=dark +let g:gruvbox_material_better_performance = 1 +let g:gruvbox_material_statusline_style = 'original' +colo gruvbox-material + +"" bindings +" leader mapping +nnoremap <SPACE> <Nop> +let mapleader=" " +let localleader=" " + +" easy splits +nnoremap <leader>h <C-w>h +nnoremap <leader>j <C-w>j +nnoremap <leader>k <C-w>k +nnoremap <leader>l <C-w>l +set splitright splitbelow + +" easy write +nmap <leader>w :w!<CR> +nmap <leader>W :w!<CR> + + |