Last active
June 26, 2023 13:53
-
-
Save IanoNjuguna/830afabbbc1182f082d90904314899e6 to your computer and use it in GitHub Desktop.
Configuration For My NVIM INIT File
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
" Mouse settings | |
:set mouse=a | |
" Customise tabs length | |
:set tabstop=4 shiftwidth=4 smarttab softtabstop=4 | |
" Indent automatically | |
:set autoindent | |
" Intelligent indentation for C code | |
:set smartindent | |
:set cindent | |
" Display the current line and column | |
:set number | |
" Enable syntax highlighting | |
:syntax enable | |
call plug#begin() | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' | |
" Any valid git URL is allowed | |
Plug 'https://github.com/junegunn/vim-github-dashboard.git' | |
" Multiple Plug commands can be written in a single line using | separators | |
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | |
" On-demand loading | |
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'tpope/vim-fireplace', { 'for': 'clojure' } | |
" Using a non-default branch | |
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } | |
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above) | |
Plug 'fatih/vim-go', { 'tag': '*' } | |
" Plugin options | |
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } | |
" Plugin outside ~/.vim/plugged with post-update hook | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
" TabNine | |
Plug 'codota/tabnine-nvim', { 'do': './dl_binaries.sh' } | |
" Unmanaged plugin (manually installed and updated) | |
Plug '~/my-prototype-plugin' | |
" Initialize plugin system | |
" - Automatically executes `filetype plugin indent on` and `syntax enable`. | |
" Wakatime Plugin | |
Plug 'wakatime/vim-wakatime' | |
" Asynchronous Linter Engine (ALE) | |
Plug 'dense-analysis/ale' | |
" Theme | |
Plug 'ajmwagar/vim-deus' | |
"Betty-ale-vim | |
Plug 'JuanDAC/betty-ale-vim' | |
" Surrounding ysw) | |
Plug 'http://github.com/tpope/vim-surround' | |
" NerdTree | |
Plug 'https://github.com/preservim/nerdtree' | |
" For Commenting gcc & gc | |
Plug 'https://github.com/tpope/vim-commentary' | |
" Status bar | |
Plug 'https://github.com/vim-airline/vim-airline' | |
" PSQL Pluging needs :SQLSetType pgsql.vim | |
Plug 'https://github.com/lifepillar/pgsql.vim' | |
" CSS Color Preview | |
Plug 'https://github.com/ap/vim-css-color' | |
" Retro Scheme | |
Plug 'https://github.com/rafi/awesome-vim-colorschemes' | |
" Auto Completion | |
Plug 'https://github.com/neoclide/coc.nvim' | |
" Developer Icons | |
Plug 'https://github.com/ryanoasis/vim-devicons' | |
" Vim Terminal | |
Plug 'https://github.com/tc50cal/vim-terminal' | |
" Tagbar for code navigation | |
Plug 'https://github.com/preservim/tagbar' | |
" CTRL + N for multiple cursors | |
Plug 'https://github.com/terryma/vim-multiple-cursors' | |
set encoding=UTF-8 | |
call plug#end() | |
" Support for ALE | |
let g:ale_linters = {'c':['betty-style', 'betty-doc', 'gcc']} | |
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 | |
" let g:coc_disable_startup_warning = 1 | |
" :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