Skip to content

Instantly share code, notes, and snippets.

@techiepriyansh
Created November 6, 2022 15:06
Show Gist options
  • Save techiepriyansh/a6efb3e8f2ae1c791b28acd3fc0767fa to your computer and use it in GitHub Desktop.
Save techiepriyansh/a6efb3e8f2ae1c791b28acd3fc0767fa to your computer and use it in GitHub Desktop.
My neovim config
set number
:set autoindent
:set smarttab
:set mouse=a
call plug#begin()
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw)
Plug 'https://github.com/preservim/nerdtree' " NerdTree
Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc
Plug 'https://github.com/vim-airline/vim-airline' " Status bar
Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme
Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons
Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal
Plug 'https://github.com/Mofiqul/vscode.nvim' " VS Code Theme
call plug#end()
"# Colorscheme stuff
if (empty($TMUX))
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
set termguicolors
endif
endif
set background=dark " for the dark version
" set background=light " for the light version
colorscheme one
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
:au VimLeave * set guicursor=a:ver25-blinkwait700-blinkoff400-blinkon250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment