Last active
July 16, 2023 14:30
-
-
Save MarioCarrion/836dc17e15096b6c2414ce9b0acd93a4 to your computer and use it in GitHub Desktop.
Basic nvim configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "," | |
filetype on | |
filetype indent on | |
filetype plugin on | |
set encoding=UTF-8 | |
syntax on | |
set nocompatible | |
set hlsearch | |
set number relativenumber | |
set laststatus=2 | |
set vb | |
set ruler | |
set spelllang=en_us | |
set autoindent | |
set colorcolumn=80 | |
set mouse=a | |
set clipboard=unnamed | |
set noscrollbind | |
set wildmenu | |
set autochdir | |
hi Search cterm=NONE ctermfg=black ctermbg=red | |
" No more Arrow Keys, deal with it | |
noremap <Up> <NOP> | |
noremap <Down> <NOP> | |
noremap <Left> <NOP> | |
noremap <Right> <NOP> | |
" netrw | |
nnoremap - :Explore<CR> | |
let g:netrw_banner = 0 | |
let g:netrw_liststyle = 3 | |
let g:netrw_bufsettings = 'noma nomod nu nobl nowrap ro' | |
autocmd FileType netrw setl bufhidden=delete | |
"-- netrw END | |
" plug | |
call plug#begin() | |
"> Must Have | |
Plug 'vim-airline/vim-airline' " https://github.com/vim-airline/vim-airline | |
Plug 'ctrlpvim/ctrlp.vim' " https://github.com/ctrlpvim/ctrlp.vim | |
Plug 'ryanoasis/vim-devicons' " https://github.com/ryanoasis/vim-devicons + https://github.com/ryanoasis/nerd-fonts/ | |
Plug 'tpope/vim-commentary' " https://github.com/tpope/vim-commentary | |
Plug 'airblade/vim-gitgutter' " https://github.com/airblade/vim-gitgutter | |
Plug 'mkitt/tabline.vim' " https://github.com/mkitt/tabline.vim | |
"> Go | |
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } " https://github.com/fatih/vim-go | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} " https://github.com/neoclide/coc.nvim | |
Plug 'SirVer/ultisnips' " https://github.com/sirver/UltiSnips | |
"> Theme | |
Plug 'NLKNguyen/papercolor-theme' " https://github.com/NLKNguyen/papercolor-theme | |
call plug#end() | |
"-- plug END | |
" ctrlp | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] | |
" vim-gitgutter | |
set updatetime=500 | |
"-- vim-gitgutter END | |
" papercolor-theme | |
set termguicolors | |
set background=dark | |
colorscheme PaperColor | |
"-- papercolor-theme END |
@connorjcantrell The icons when using ctrlp after installing vim-devicons? If yes, then you need patched font that includes those icons, you can get yours from https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts For example I'm using "FiraCode Nerd Font" and I have ligatures enabled as well.
I hope that works!
@MarioCarrion Sorry, the icons for the file extensions. Like the gopher for Go and "JS" for Javascript
@connorjcantrell Do you mean the ones for the vim-airline? That one also uses the patched fonts and vim-devicons; if not can you upload a screenshot somewhere so what which one you mean?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks Mario, this has been a great way to start my neovim journey. All is running well, however my icons aren't showing. How would I begin to diagnose this?