Skip to content

Instantly share code, notes, and snippets.

@Marin-Kitagawa
Last active June 24, 2021 16:02
Show Gist options
  • Save Marin-Kitagawa/736b978b727859acd5019649f470c5fb to your computer and use it in GitHub Desktop.
Save Marin-Kitagawa/736b978b727859acd5019649f470c5fb to your computer and use it in GitHub Desktop.
New `init.vim` file for `Neovide` based on `vim-plug` and not `vundle`
" Install Vim-Plug
" iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
" ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
" Install Vim-Plug in ~\AppData\Local\nvim\autoload and NOT inside nvim-data
set guifont=FiraCode\ Nerd\ Font:h16
set number
set relativenumber
" set shellslash
" Plug plugin install setup
call plug#begin('~/AppData/Local/nvim/plugged')
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'wakatime/vim-wakatime'
Plug 'pprovost/vim-ps1'
Plug 'preservim/nerdcommenter'
Plug 'nikvdp/neomux'
Plug 'mhinz/neovim-remote'
" Colorizer i.e. Color visualizer
Plug 'norcalli/nvim-colorizer.lua'
" Bash support
Plug 'WolfgangMehner/bash-support'
" View the content of the registers
Plug 'tversteeg/registers.nvim', { 'branch': 'main' }
" Vim Illuminate
Plug 'RRethy/vim-illuminate'
" Kotlin
Plug 'udalov/kotlin-vim'
" Markdown
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'instant-markdown/vim-instant-markdown', {'rtp': 'after'}
" All of your Plugins must be added before the following line
call plug#end()
" Configurations for the plugins
let g:gruvbox_contrast_dark='soft'
let g:gruvbox_improved_strings=1
let g:gruvbox_improved_warnings=1
" Airline
let g:airline_powerline_fonts = 1
" let g:airline_section_z = '%3l/%L:%3v'
" let g:airline_left_sep = "\uE0B4"
" let g:airline_right_sep = "\uE0B6"
let g:airline#extensions#coc#enabled = 1
" let g:airline_section_warning = ''
" let g:airline_section_error = ''
let g:neovide_cursor_vfx_mode = "pixiedust"
" Tabline
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#show_tab_type = 1
let g:airline#extensions#tabline#switch_buffers_and_tabs = 1
" let g:airline#extensions#tabline#buffers_label = 'B'
" let g:airline#extensions#tabline#tabs_label = 'T'
let g:airline#extensions#tabline#formatter = 'unique_tail'
" let g:neovide_fullscreen=v:true
" NERDCOMMENTER
" Create default mappings
let g:NERDCreateDefaultMappings = 1
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1
" Use compact syntax for prettified multi-line comments
let g:NERDCompactSexyComs = 1
" Align line-wise comment delimiters flush left instead of following code indentation
let g:NERDDefaultAlign = 'left'
" Set a language to use its alternate delimiters by default
let g:NERDAltDelims_java = 1
" Add your own custom formats or override the defaults
let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } }
" Allow commenting and inverting empty lines (useful when commenting a region)
let g:NERDCommentEmptyLines = 1
" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1
" Enable NERDCommenterToggle to check all selected lines is commented or not
let g:NERDToggleCheckAllLines = 1
lua require'colorizer'.setup()
autocmd vimenter * ++nested colorscheme gruvbox
filetype plugin indent on " required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment