Skip to content

Instantly share code, notes, and snippets.

@Shazambom
Created January 23, 2023 07:10
Show Gist options
  • Save Shazambom/8c6706b9fd6e7bf92e926862b65695a3 to your computer and use it in GitHub Desktop.
Save Shazambom/8c6706b9fd6e7bf92e926862b65695a3 to your computer and use it in GitHub Desktop.
NeoVim config, work in progress
set path+=**
set modelines=0
set autoread
au FocusGained,BufEnter * :silent! !
set encoding=utf-8
set visualbell
set backspace=indent,eol,start
set nobackup
set noswapfile
set relativenumber
set number
set scrolloff=2
set expandtab tabstop=2 shiftwidth=2 softtabstop=2
set autoindent
set showmode showcmd
set ttyfast lazyredraw
set showmatch
set hlsearch incsearch ignorecase smartcase
set autochdir
set hidden
set wildmenu wildmode=list:longest,full
set laststatus=2 statusline=%F
set clipboard=unnamed
set foldmethod=indent
set foldnestmax=1
set foldlevelstart=1
let g:netrw_browse_split = 3
" Plugins, syntax, and colors
" ---------------------------------------------------------------------------
" vim-plug
" https://github.com/junegunn/vim-plug
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.local/share/nvim/plugged')
" Make sure to use single quotes
" Install with `:PlugInstall`
Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
" https://github.com/itchyny/lightline.vim
Plug 'itchyny/lightline.vim'
" https://github.com/tpope/vim-commentary
Plug 'tpope/vim-commentary'
" https://github.com/tpope/vim-surround
Plug 'tpope/vim-surround'
" https://github.com/tpope/vim-vinegar
Plug 'tpope/vim-vinegar'
" https://github.com/APZelos/blamer.nvim
Plug 'APZelos/blamer.nvim'
" https://github.com/fenetikm/falcon/wiki/Installation
Plug 'fenetikm/falcon'
" https://github.com/macguirerintoul/night_owl_light.vim
Plug 'macguirerintoul/night_owl_light.vim'
Plug 'catppuccin/nvim', { 'as': 'catppuccin' }
" Initialize plugin system
call plug#end()
syntax enable
" Neovim only
set termguicolors
" colorscheme tokyonight-day
colorscheme tokyonight-moon
" Show character column
set colorcolumn=80
" lightline config - add file 'absolutepath'
" Delete colorscheme line below if using Dark scheme
let g:lightline = {
\ 'colorscheme': 'PaperColor_light',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'absolutepath', 'modified' ] ]
\ }
\ }
let g:blamer_enabled = 1
" %a is the day of week, in case it's needed
let g:blamer_date_format = '%e %b %Y'
highlight Blamer guifg=darkorange
nnoremap C-d C-dzz
nnoremap C-u C-uzz
set ruler
highlight LineNr term=NONE cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
set incsearch
set nolist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment