I use this preconfigure nvim config: https://github.com/NeuralNine/config-files/blob/master/init.vim
1. Install neovim
sudo apt install neovim git-core curl
2. Create nvim directory under .config and paste the neovim preconfiguration from NeuralNine to init.vim
/home/username/.config/nvim/init.vim
3. Install nvim plug in directory (https://github.com/junegunn/vim-plug) /home/username/.config/nvim:
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
4. once install nvim-plug, proceed to access nvim and install plug:
:PlugInstall
5. Install exuberant-ctags:
sudo apt install exuberant-ctags
6. Install nodejs:
sudo apt install nodejs
7. Install npm:
sudo apt install npm
8. Navigate to /home/username/.local/share/nvim/plugged/coc.nvim and install:
sudo npm install -g yarn
9. Install yarn
yarn install && yarn build
init.vim configuration:
:set number :set relativenumber :set autoindent :set tabstop=4 :set shiftwidth=4 :set smarttab :set softtabstop=4 ":set mouse=a set termguicolors "highlight MatchParen ctermbg=2 hi MatchParen ctermfg=Yellow ctermbg=NONE cterm=bold hi MatchParen guifg=Yellow guibg=NONE gui=bold 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 'neovim/nvim-lspconfig' Plug 'jose-elias-alvarez/null-ls.nvim' Plug 'MunifTanjim/prettier.nvim' Plug 'tpope/vim-dispatch' "| Optional Plug 'tpope/vim-projectionist' "| Plug 'noahfrederick/vim-composer' "| Plug 'noahfrederick/vim-laravel' set encoding=UTF-8 call plug#end() nnoremap:NERDTreeFocus nnoremap :NERDTree nnoremap :NERDTreeToggle nnoremap :call CocActionAsync('jumpDefinition') nmap :TagbarToggle :set completeopt-=preview " For No Previews :colorscheme darkblue 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 pumvisible() ? coc#_select_confirm() : " "
Add new comment