Last active
August 7, 2024 14:27
-
-
Save BekBrace/73d1d179967a33853c5e079f68fdc93a to your computer and use it in GitHub Desktop.
My Neovim customized init file [ ~/. config/nvim/init. vim ]
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
"Bek Brace @ 30.11.2022 | |
:set relativenumber | |
:set number | |
: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 'https://github.com/rstacruz/vim-closer' " For brackets autocompletion | |
" Auto-completion For Javascript | |
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} " this is for auto complete, prettier and tslinting | |
let g:coc_global_extensions = ['coc-tslint-plugin', 'coc-tsserver', 'coc-css', 'coc-html', 'coc-json', 'coc-prettier'] " list of CoC extensions needed | |
Plug 'jiangmiao/auto-pairs' "this will auto close ( [ { | |
" these two plugins will add highlighting and indenting to JSX and TSX files. | |
Plug 'yuezk/vim-js' | |
Plug 'HerringtonDarkholme/yats.vim' | |
Plug 'maxmellon/vim-jsx-pretty' | |
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>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have added relativenumber, as some of my viewers asked how to set relative numeration.
simply [:set relativenumber] does it.