Skip to content

Instantly share code, notes, and snippets.

@luizmachado
Last active May 5, 2025 11:46
Show Gist options
  • Save luizmachado/9b3994366d43c0d1866973f359c73ef4 to your computer and use it in GitHub Desktop.
Save luizmachado/9b3994366d43c0d1866973f359c73ef4 to your computer and use it in GitHub Desktop.
Init configuration of NVim
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'nvim-tree/nvim-web-devicons'
Plug 'christoomey/vim-tmux-navigator'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-fugitive'
Plug 'kiteco/vim-plugin'
Plug 'ayu-theme/ayu-vim'
Plug 'lervag/vimtex'
Plug 'dense-analysis/ale'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.8' }
Plug 'ryanoasis/vim-devicons'
call plug#end()
" Maps to NERDTree
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
"Define color scheme
"set termguicolors " enable true colors support
"let ayucolor="light" " for light version of theme
"let ayucolor="mirage" " for mirage version of theme
"let ayucolor="dark" " for dark version of theme
"Vim-devicons configuration
set encoding=utf8
set guifont=DroidSansMono\ Nerd\ Font\ 11
let g:airline_powerline_fonts = 1
"VimTex configuration
filetype plugin indent on
syntax enable
let g:vimtex_view_method = 'zathura'
let g:vimtex_compiler_method = 'latexmk'
let g:vimtex_compiler_latexmk = {
\ 'options' : [
\ '-shell-escape',
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
"Configurações do Ale
let g:ale_completion_enabled = 1
" Define textwidth for Python files
autocmd FileType python setlocal textwidth=79
" Find files using Telescope command-line sugar.
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment