Changed Ranger for NERDTreee

plus bump of uncommitted stuff
This commit is contained in:
Claudio Maggioni (maggicl) 2020-07-05 19:44:10 +02:00
parent 3ddc376d98
commit f095bde4b5
2 changed files with 20 additions and 71 deletions

View File

@ -14,50 +14,10 @@ source ~/.config/nvim/plugins.vim
let mapleader = ","
let maplocalleader = " "
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_check_on_wq = 0
" Disable auto-opening of location list
let g:syntastic_auto_loc_list = 0
" Check on file open
let g:syntastic_check_on_open = 0
" Force python3 when using systastic
let g:syntastic_python_checkers=['pylint']
nnoremap <silent> <Leader>c :SyntasticCheck<CR>
" FILE MANAGER
" Override netrw commands with Dirvish
let g:loaded_netrwPlugin = 1
command! -nargs=? -complete=dir Explore Dirvish <args>
command! -nargs=? -complete=dir Sexplore belowright split | silent Dirvish <args>
command! -nargs=? -complete=dir Vexplore leftabove vsplit | silent Dirvish <args>
let g:dirvish_mode = ':sort ,^.*[\/],'
" DEOPLETE
let g:deoplete#enable_at_startup = 1
let g:deoplete#omni#functions = {}
let g:deoplete#omni#functions.javascript = [
\ 'tern#Complete',
\ 'jspc#omni'
\]
set completeopt=longest,menuone,preview
let g:deoplete#sources = {}
let g:deoplete#sources['javascript.jsx'] = ['file', 'ultisnips', 'ternjs']
" SETTINGS
if !has('nvim')
setlocal cm=blowfish2
end
@ -134,13 +94,11 @@ noremap <F2> :let @/ = ""<CR>
" Switch between Windows with: Leader w
nnoremap <Leader>w <C-w><C-w>
nnoremap <leader>b <esc>:b <tab>
" Re-read buffer and load modelines with: Leader m
nnoremap <Leader>m :doautocmd BufRead<CR>
" Open fzf with all files in git with: Leader f
nnoremap <Leader>f :GFiles<CR>
" Fix indentation with: Leader i
nnoremap <Leader>i mzgg=G`z
@ -184,13 +142,11 @@ nnoremap <Leader>a GA
colorscheme onedark
let g:airline_theme='onedark'
" PACKAGES
" vim-fish setup
nnoremap - :NERDTreeToggle<CR>
syntax enable
filetype plugin indent on
" Set up :make to use fish for syntax checking.
autocmd FileType fish compiler fish
if has("vms")
set nobackup " do not keep a backup file, use versions instead
@ -200,4 +156,3 @@ else
set undofile " keep an undo file (undo changes after closing)
endif
endif

View File

@ -4,15 +4,17 @@ call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'joshdick/onedark.vim'
Plug 'vim-airline/vim-airline'
" custom operator commands and motions
Plug 'tpope/vim-commentary'
Plug 'kana/vim-textobj-user'
Plug 'kana/vim-textobj-entire'
" Editorconfig support
Plug 'sgur/vim-editorconfig'
" Sudo support for WW
Plug 'lambdalisue/suda.vim'
" File manager
Plug 'justinmk/vim-dirvish'
" Git integration and git grepping
Plug 'tpope/vim-fugitive'
Plug 'vim-scripts/gitignore.vim'
@ -24,34 +26,26 @@ Plug 'tpope/vim-unimpaired'
Plug 'Valloric/ListToggle'
" File type support
Plug 'dag/vim-fish', { 'for': 'fish' }
Plug 'wlangstroth/vim-racket', { 'for': 'scheme' }
Plug 'leafgarland/typescript-vim', { 'for': 'typescript' }
Plug 'mboughaba/i3config.vim', { 'for': 'i3config' }
" Syntax checking
Plug 'vim-syntastic/syntastic'
" Dustjs highlight
Plug 'jimmyhchan/dustjs.vim'
" Completion engine
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
"LanguageServer implementation
Plug 'dense-analysis/ale'
" Competion language support
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'rbgrouleff/bclose.vim'
Plug 'carlitux/deoplete-ternjs', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'othree/jspc.vim', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'deoplete-plugins/deoplete-jedi' " Python (pip install jedi)
" Commands like :Delete :Move for both filesystem and buffers
Plug 'tpope/vim-eunuch'
" File manager
Plug 'preservim/nerdtree'
" File manager icons
Plug 'ryanoasis/vim-devicons'
" Start screen
Plug 'mhinz/vim-startify'
call plug#end()