Last active
May 20, 2024 15:15
-
-
Save joaquinco/40814cac79c60a5ba6f87087245b8eeb to your computer and use it in GitHub Desktop.
NeoVim init file
This file contains hidden or 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
call plug#begin() | |
" File explorer | |
Plug 'scrooloose/nerdtree' | |
" Commenting stuff | |
Plug 'tpope/vim-commentary' | |
" Visualization | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
" Autocomplete | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
" Syntax | |
Plug 'dense-analysis/ale' | |
" Git | |
Plug 'apzelos/blamer.nvim' | |
" Telescope | |
Plug 'nvim-lua/plenary.nvim' | |
Plug 'nvim-telescope/telescope.nvim' | |
call plug#end() | |
""" VIM configuration, based on https://github.com/Optixal/neovim-init.vim/blob/master/init.vim | |
filetype plugin indent on | |
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smarttab autoindent | |
set incsearch ignorecase smartcase hlsearch | |
set wildmode=longest,list,full wildmenu | |
set ruler laststatus=2 showcmd showmode | |
set list listchars=trail:»,tab:»- | |
set wrap breakindent | |
set encoding=utf-8 | |
set textwidth=0 | |
set hidden | |
set number | |
set title | |
set noequalalways | |
set scrolloff=5 | |
" Open quickfix window automatically in a new tab | |
augroup quickfix | |
autocmd! | |
autocmd QuickFixCmdPost [^l]* tab cwindow | |
autocmd QuickFixCmdPost l* tab lwindow | |
augroup END | |
""" Plugin Configurations | |
" NERDTree | |
let NERDTreeShowHidden=1 | |
" Blamer | |
let g:blamer_enabled = 0 | |
let g:blamer_relative_time = 1 | |
let g:blamer_show_in_visual_modes = 0 | |
let g:blamer_delay = 200 | |
highlight Blamer guifg=lightgray | |
" Airline | |
" Powerline fonts needs https://github.com/powerline/fonts | |
" let g:airline_powerline_fonts = 0 | |
let g:airline_theme='bubblegum' | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#formatter = 'unique_tail' | |
""" Mappings | |
map <C-n> :NERDTreeToggle<CR> | |
map <C-b> :NERDTreeFind<CR> | |
" Override C-f that I never really use | |
map <C-f> :Telescope find_files<CR> | |
" requires ripgrep | |
map <C-s> :Telescope live_grep<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment