Created
May 15, 2022 11:10
-
-
Save aradhyamathur/c71424ca3cc92bdd55ffa09a4eb4d5b9 to your computer and use it in GitHub Desktop.
nvim config
This file contains hidden or 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
:set clipboard+=unnamedplus | |
:set list | |
:set nocompatible | |
:filetype plugin on | |
:syntax on | |
:set number | |
":set relativenumber" | |
:set autoindent | |
:set tabstop=4 | |
:set shiftwidth=4 | |
:set smarttab | |
:set softtabstop=4 | |
:set mouse=a | |
call plug#begin() | |
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) | |
Plug 'https://github.com/preservim/nerdtree' " NerdTree | |
Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc | |
Plug 'https://github.com/vim-airline/vim-airline' " Status bar | |
Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim | |
Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview | |
Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme | |
Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion | |
Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons | |
Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal | |
Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation | |
Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors | |
Plug 'vimwiki/vimwiki' | |
Plug 'dart-lang/dart-vim-plugin' | |
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} | |
set encoding=UTF-8 | |
call plug#end() | |
nnoremap <C-f> :NERDTreeFocus<CR> | |
nnoremap <C-n> :NERDTree<CR> | |
nnoremap <C-t> :NERDTreeToggle<CR> | |
nnoremap <C-l> :call CocActionAsync('jumpDefinition')<CR> | |
nmap <F8> :TagbarToggle<CR> | |
:set completeopt-=preview " For No Previews | |
:colorscheme jellybeans | |
let g:NERDTreeDirArrowExpandable="+" | |
let g:NERDTreeDirArrowCollapsible="~" | |
" --- Just Some Notes --- | |
" :PlugClean :PlugInstall :UpdateRemotePlugins | |
" | |
" :CocInstall coc-python | |
" :CocInstall coc-clangd | |
" :CocInstall coc-snippets | |
" :CocCommand snippets.edit... FOR EACH FILE TYPE | |
" air-line | |
let g:airline_powerline_fonts = 1 | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
" airline symbols | |
let g:airline_left_sep = '' | |
let g:airline_left_alt_sep = '' | |
let g:airline_right_sep = '' | |
let g:airline_right_alt_sep = '' | |
let g:airline_symbols.branch = '' | |
let g:airline_symbols.readonly = '' | |
let g:airline_symbols.linenr = '' | |
inoremap <expr> <Tab> pumvisible() ? coc#_select_confirm() : "<Tab>" | |
nmap <silent> gd <Plug>(coc-definition) | |
nmap <silent> gD <Plug>(coc-implementation) | |
nmap <silent> gr <Plug>(coc-references) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment