Skip to content

Instantly share code, notes, and snippets.

@Shazambom
Created January 23, 2023 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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