Skip to content

Instantly share code, notes, and snippets.

@ulisesantana
Created July 12, 2021 16:46
Show Gist options
  • Save ulisesantana/4b4a980dc56a0e00f972133ad1999781 to your computer and use it in GitHub Desktop.
Save ulisesantana/4b4a980dc56a0e00f972133ad1999781 to your computer and use it in GitHub Desktop.
Neovim plugins config
" Based on this post https://stsewd.dev/es/posts/neovim-plugins/
call plug#begin('~/.local/share/nvim/plugged')
Plug 'yashguptaz/calvera-dark.nvim'
Plug 'scrooloose/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' " Temas para airline
Plug 'Yggdroot/indentLine'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/neco-syntax' " Fuente general de auto completado
Plug 'ervandew/supertab'
Plug 'Shougo/echodoc.vim'
Plug 'sheerun/vim-polyglot'
Plug 'jiangmiao/auto-pairs'
Plug 'xuyuanp/nerdtree-git-plugin'
Plug 'w0rp/ale'
call plug#end()
" Calvera dark theme
let g:calvera_italic_comments = 1
let g:calvera_italic_keywords = 1
let g:calvera_italic_functions = 1
let g:calvera_contrast = 1
colorscheme calvera
" NERD Tree
let g:NERDTreeChDirMode = 2 " Cambia el directorio actual al nodo padre actual
" Abrir/cerrar NERDTree con F2
map <F2> :NERDTreeToggle<CR>
" Airline
let g:airline#extensions#tabline#enabled = 1 " Mostrar buffers abiertos (como pestañas)
let g:airline#extensions#tabline#fnamemod = ':t' " Mostrar sólo el nombre del archivo
" Cargar fuente Powerline y símbolos (ver nota)
let g:airline_powerline_fonts = 1
set noshowmode " No mostrar el modo actual (ya lo muestra la barra de estado)
" IndentLine
" No mostrar en ciertos tipos de buffers y archivos
let g:indentLine_fileTypeExclude = ['text', 'sh', 'help', 'terminal']
let g:indentLine_bufNameExclude = ['NERD_tree.*', 'term:.*']
" Deoplete (autocompletado)
" Activar deoplete al iniciar Neovim
let g:deoplete#enable_at_startup = 1
" Cerrar automaticamente la ventana de vista previa (donde se muestra documentación, si existe)
augroup deopleteCompleteDoneAu
autocmd!
autocmd CompleteDone * silent! pclose!
augroup END
" Invertir direccion de navegacion (de arriba a abajo)
let g:SuperTabDefaultCompletionType = '<c-n>'
set noshowmode " No mostrar el modo actual (echodoc hace uso de este espacio)
" Activar echodoc al iniciar Neovim
let g:echodoc_enable_at_startup = 1
" Activar los numeros de las lineas
set number
" Lint
let g:ale_fixers = {
\ 'javascript': ['eslint'],
\ 'typescript': ['eslint']
\ }
let g:ale_sign_error = '❌'
let g:ale_sign_warning = '⚠️'
let g:ale_fix_on_save = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment