Skip to content

Instantly share code, notes, and snippets.

@remynguyen96
Created November 12, 2020 15:16
Show Gist options
  • Select an option

  • Save remynguyen96/ace2d0f2d93d786b69599279236f2d1f to your computer and use it in GitHub Desktop.

Select an option

Save remynguyen96/ace2d0f2d93d786b69599279236f2d1f to your computer and use it in GitHub Desktop.
Theme configuration (~/.config/nvim/theme.vim)
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup
set nowritebackup
set noswapfile
set history=50
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set laststatus=2 " Always display the status line
set autowrite " Automatically :write before running commands
set noerrorbells
set smartindent
set nu
set nowrap
" Use one space, not two, after punctuation.
set nojoinspaces
set smartcase
set undodir=~/.vim/undodir
set undofile
" Softtabs, 2 spaces
set tabstop=2 softtabstop=2
set shiftwidth=2
set shiftround
set expandtab
" Make it obvious where 80 characters is
set textwidth=120
set colorcolumn=+1
highlight ColorColumn ctermbg=0 guibg=lightgrey
" Numbers
set relativenumber
set number
set numberwidth=4
" Autocomplete with dictionary words when spell check is on
set complete+=kspell
" Always use vertical diffs
set diffopt+=vertical
" Open new split panes to right and bottom, which feels more natural
set splitbelow
set splitright
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if (&t_Co > 2 || has("gui_running")) && !exists("syntax_on")
syntax on
endif
syntax enable
" Set themes, background
set lazyredraw
set termguicolors
set background=dark
colorscheme dracula
"colorscheme gruvbox
filetype plugin indent on
" Lightline
let g:lightline = {
\ 'colorscheme': 'dracula',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'cocstatus', 'readonly', 'filename', 'modified' ] ],
\ 'right': [ [ 'lineinfo', 'percent' ],
\ [ 'fileformat', 'fileencoding', 'filetype' ] ]
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '', 'right': '' },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head',
\ 'cocstatus': 'coc#status'
\ },
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment