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 mapleader = ","
let maplocalleader = " " 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 " 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 ,^.*[\/],' 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') if !has('nvim')
setlocal cm=blowfish2 setlocal cm=blowfish2
end end
@ -134,13 +94,11 @@ noremap <F2> :let @/ = ""<CR>
" Switch between Windows with: Leader w " Switch between Windows with: Leader w
nnoremap <Leader>w <C-w><C-w> nnoremap <Leader>w <C-w><C-w>
nnoremap <leader>b <esc>:b <tab>
" Re-read buffer and load modelines with: Leader m " Re-read buffer and load modelines with: Leader m
nnoremap <Leader>m :doautocmd BufRead<CR> 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 " Fix indentation with: Leader i
nnoremap <Leader>i mzgg=G`z nnoremap <Leader>i mzgg=G`z
@ -184,13 +142,11 @@ nnoremap <Leader>a GA
colorscheme onedark colorscheme onedark
let g:airline_theme='onedark' let g:airline_theme='onedark'
" PACKAGES
" vim-fish setup nnoremap - :NERDTreeToggle<CR>
syntax enable syntax enable
filetype plugin indent on filetype plugin indent on
" Set up :make to use fish for syntax checking.
autocmd FileType fish compiler fish
if has("vms") if has("vms")
set nobackup " do not keep a backup file, use versions instead 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) set undofile " keep an undo file (undo changes after closing)
endif endif
endif endif

View File

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