I use neovim now

This commit is contained in:
2021-09-22 22:45:09 +03:00
parent dc407214c5
commit b78dc03126

46
nvim/init.vim Normal file
View File

@@ -0,0 +1,46 @@
" mark: modules
call plug#begin('~/.config/nvim/plugged')
Plug 'ayu-theme/ayu-vim'
Plug 'tpope/vim-commentary'
Plug 'norcalli/nvim-colorizer.lua'
Plug 'jiangmiao/auto-pairs'
call plug#end()
" mark: general
syntax on
set number
set tabstop=2
set shiftwidth=2
set smartindent
set expandtab
set wrap
set noswapfile
set encoding=utf-8
set termguicolors
" MY LEADER KEY IS GONNA BE A SPACE
let mapleader = " "
" Colorscheme
let ayucolor = "mirage"
colorscheme ayu
" Color highlighting
lua require'colorizer'.setup()
" mark: remaps
" These allow me to quickly save and quit vim
nnoremap <leader>w :w<CR>
nnoremap <leader>q :q<CR>
" Remaps to move line under the cursor up and down
nnoremap <C-k> :m .-2<CR>==
nnoremap <C-j> :m .+1<CR>==
vnoremap K :m '<-2<CR>gv=gv
vnoremap J :m '>+1<CR>gv=gv