Created
February 2, 2021 09:31
-
-
Save raaims/0b33d983474646df20d3bb399d5a3c9e to your computer and use it in GitHub Desktop.
Neovim config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "," | |
call plug#begin() | |
" Languages | |
Plug 'pangloss/vim-javascript' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'maxmellon/vim-jsx-pretty' | |
Plug 'jparise/vim-graphql' | |
Plug 'godlygeek/tabular' | |
Plug 'plasticboy/vim-markdown' | |
Plug 'stephpy/vim-yaml' | |
Plug 'tpope/vim-haml' | |
Plug 'elixir-editors/vim-elixir' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'peitalin/vim-jsx-typescript' | |
" Git stuff | |
Plug 'tpope/vim-fugitive' | |
" Skaearchers | |
Plug 'junegunn/fzf', { 'do': './install --bin' } | |
Plug 'junegunn/fzf.vim' | |
" Quality of life | |
Plug 'wakatime/vim-wakatime' | |
Plug 'tpope/vim-commentary' | |
Plug 'itchyny/lightline.vim' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'tpope/vim-surround' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'mhinz/vim-startify' | |
" Themes | |
Plug 'NLKNguyen/papercolor-theme' | |
Plug 'arcticicestudio/nord-vim' | |
Plug 'ghifarit53/tokyonight-vim' | |
call plug#end() | |
nnoremap <Leader>n :NERDTreeToggle<CR> | |
nnoremap <Leader>p :GFiles<CR> | |
nnoremap <Leader>/ :Rg<CR> | |
nnoremap <Leader>b :Buffers<CR> | |
nnoremap <Leader>g :Git<CR> | |
" coc stuff | |
set hidden | |
set nobackup | |
set nowritebackup | |
set relativenumber | |
set updatetime=300 | |
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>" | |
inoremap <silent><expr> <c-space> coc#refresh() | |
set splitbelow | |
set splitright | |
set tabstop=2 | |
set shiftwidth=2 | |
set shiftround | |
set expandtab | |
set noshowmode | |
set termguicolors | |
let g:tokyonight_style = 'night' " available: night, storm | |
let g:tokyonight_enable_italic = 1 | |
colorscheme tokyonight | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-l> <C-w>l | |
let g:lightline = { | |
\ 'colorscheme': 'wombat', | |
\ 'active': { | |
\ 'left': [ [ 'mode', 'paste' ], | |
\ [ 'readonly', 'filename' ] ] | |
\ }, | |
\ 'component_function': { | |
\ 'gitbranch': 'FugitiveHead' | |
\ }, | |
\ } | |
let g:NERDTreeWinPos = "left" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment