2020-07-24 18:55:27 +00:00
|
|
|
call plug#begin('~/.config/nvim/plugged')
|
2022-09-26 11:02:24 +00:00
|
|
|
" Ayu color scheme
|
|
|
|
Plug 'TanguyHerbron/ayu-vim'
|
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
Plug 'junegunn/fzf.vim'
|
|
|
|
|
2020-08-01 20:37:32 +00:00
|
|
|
" Display indents
|
|
|
|
Plug 'yggdroot/indentline'
|
|
|
|
|
2020-11-24 11:42:12 +00:00
|
|
|
Plug 'yuezk/vim-js'
|
2020-06-28 15:49:52 +00:00
|
|
|
|
2020-07-24 18:57:55 +00:00
|
|
|
" Autocompletion
|
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'ryanoasis/vim-devicons'
|
|
|
|
|
2022-12-06 14:36:31 +00:00
|
|
|
" File finder and live grep
|
|
|
|
Plug 'nvim-telescope/telescope.nvim', {'branch': '0.1.x'}
|
|
|
|
Plug 'nvim-lua/plenary.nvim'
|
|
|
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
" Grep utility for whole project
|
|
|
|
Plug 'jremmen/vim-ripgrep'
|
|
|
|
" Git integration
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
|
2022-09-26 11:02:24 +00:00
|
|
|
Plug 'rrethy/vim-hexokinase', {'do': 'make hexokinase'}
|
2020-06-28 15:49:52 +00:00
|
|
|
" Ctrl-z tree still history manager
|
|
|
|
Plug 'mbbill/undotree'
|
|
|
|
|
2020-11-24 11:48:42 +00:00
|
|
|
" docker-compose wrapper
|
|
|
|
Plug 'skanehira/docker-compose.vim'
|
|
|
|
|
|
|
|
" Nginx syntax highlighter
|
|
|
|
Plug 'chr4/nginx.vim'
|
|
|
|
|
2021-03-23 12:07:04 +00:00
|
|
|
" Highlight indicator
|
|
|
|
Plug 'machakann/vim-highlightedyank'
|
2021-04-01 13:33:45 +00:00
|
|
|
|
|
|
|
" Markdown preview in browser
|
|
|
|
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
2021-04-26 15:18:45 +00:00
|
|
|
|
|
|
|
" React syntax highlighter
|
2022-09-19 11:09:52 +00:00
|
|
|
|
2022-09-26 11:02:24 +00:00
|
|
|
" i3 config checker
|
|
|
|
Plug 'mboughaba/i3config.vim'
|
|
|
|
|
|
|
|
" Testing disable section
|
|
|
|
"" Deprecated, replace by coc feature ?
|
|
|
|
" Plug 'lervag/vimtex'
|
|
|
|
" Plug 'ekalinin/Dockerfile.vim'
|
2022-09-19 11:09:52 +00:00
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
call plug#end()
|
|
|
|
|
2022-12-06 14:37:25 +00:00
|
|
|
" Disable integrated providers
|
|
|
|
let g:loaded_ruby_provider = 0
|
|
|
|
let g:loaded_perl_provider = 0
|
|
|
|
let g:loaded_node_provider = 0
|
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
" autocmd vimenter * NERDTree | wincmd w
|
|
|
|
map <C-b> :NERDTreeToggle<CR>
|
|
|
|
autocmd BufEnter * lcd %:p:h
|
|
|
|
let g:NERDTreeChDirMode = 3
|
|
|
|
|
|
|
|
syntax on
|
|
|
|
|
|
|
|
set noerrorbells
|
|
|
|
filetype plugin indent on
|
|
|
|
" show existing tab with 4 spaces width
|
|
|
|
set tabstop=4 softtabstop=4
|
|
|
|
" when indenting with '>', use 4 spaces width
|
|
|
|
set shiftwidth=4
|
|
|
|
" on pressng tab, insert 4 spaces
|
|
|
|
set expandtab
|
|
|
|
set smartindent
|
|
|
|
set nu
|
|
|
|
set nowrap
|
|
|
|
set smartcase
|
|
|
|
set noswapfile
|
|
|
|
set nobackup
|
|
|
|
set undodir=~/.config/nvim/undodir
|
|
|
|
set undofile
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
set splitright
|
|
|
|
set splitbelow
|
|
|
|
|
2020-11-24 11:49:13 +00:00
|
|
|
" Remove the duplicate --INSERT-- information
|
|
|
|
set noshowmode
|
|
|
|
|
2022-12-06 14:37:25 +00:00
|
|
|
" rg smart root founder and adds git ignore loading for faster execution
|
2020-06-28 15:49:52 +00:00
|
|
|
if executable('rg')
|
|
|
|
let g:rg_derive_root="true"
|
|
|
|
endif
|
|
|
|
|
|
|
|
" let g:airline_powerline_fonts = 1
|
|
|
|
|
2020-07-24 18:57:55 +00:00
|
|
|
source ~/.config/nvim/coc.vim
|
2020-06-28 15:49:52 +00:00
|
|
|
|
|
|
|
let mapleader = " "
|
|
|
|
|
|
|
|
nnoremap <leader>h :wincmd h<CR>
|
|
|
|
nnoremap <leader>j :wincmd j<CR>
|
|
|
|
nnoremap <leader>k :wincmd k<CR>
|
|
|
|
nnoremap <leader>l :wincmd l<CR>
|
|
|
|
nnoremap <leader>u :UndotreeToggle<CR>
|
|
|
|
|
2020-08-26 13:56:47 +00:00
|
|
|
nnoremap <leader>1 1gt
|
|
|
|
nnoremap <leader>2 2gt
|
|
|
|
nnoremap <leader>3 3gt
|
|
|
|
nnoremap <leader>4 4gt
|
|
|
|
nnoremap <leader>5 5gt
|
|
|
|
nnoremap <leader>6 6gt
|
|
|
|
nnoremap <leader>7 7gt
|
|
|
|
nnoremap <leader>8 8gt
|
|
|
|
nnoremap <leader>9 9gt
|
|
|
|
nnoremap <leader>0 10gt
|
|
|
|
|
2022-12-06 14:36:31 +00:00
|
|
|
nnoremap <C-p> <cmd>Telescope find_files<cr>
|
|
|
|
nnoremap <C-f> <cmd>Telescope live_grep<cr>
|
|
|
|
|
2020-06-28 15:49:52 +00:00
|
|
|
" Add folding shortcuts and settings
|
|
|
|
set foldmethod=indent
|
|
|
|
set foldnestmax=10
|
|
|
|
set nofoldenable
|
|
|
|
set foldlevel=99
|
2020-08-12 08:39:49 +00:00
|
|
|
set signcolumn=no
|
2020-07-27 09:26:35 +00:00
|
|
|
|
|
|
|
" indentline configs
|
|
|
|
let g:indentLine_enabled = 1
|
2020-08-01 20:37:32 +00:00
|
|
|
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
|
2020-07-27 09:26:35 +00:00
|
|
|
let g:indentLine_setColors = 1
|
|
|
|
let g:indentLine_color_gui = "#5C6370"
|
|
|
|
let g:indentLine_showFirstIndentLevel = 1
|
2020-10-04 13:31:58 +00:00
|
|
|
|
|
|
|
" vimtex settings
|
|
|
|
let g:tex_flavor = 'latex'
|
|
|
|
let g:vimtex_view_method = 'zathura'
|
|
|
|
let g:vimtex_compiler_latexmk = {
|
|
|
|
\'build_dir': 'build',
|
|
|
|
\}
|
|
|
|
|
|
|
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
|
|
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
2020-11-24 11:49:42 +00:00
|
|
|
|
|
|
|
set background=dark
|
|
|
|
set t_Co=256
|
|
|
|
|
|
|
|
" Ayu colors scheme settings
|
|
|
|
set termguicolors
|
|
|
|
let ayucolor="mirage"
|
|
|
|
colorscheme ayu
|
2020-11-24 17:19:55 +00:00
|
|
|
|
2021-03-30 07:43:41 +00:00
|
|
|
" Syntastic default configuration
|
|
|
|
set statusline+=%#warningmsg#
|
|
|
|
set statusline+=%{SyntasticStatuslineFlage()}
|
|
|
|
set statusline+=%*
|
|
|
|
|
|
|
|
let g:syntastic_always_populate_loc_list = 1
|
|
|
|
let g:syntastic_auto_loc_list = 1
|
|
|
|
let g:syntastic_check_on_open = 1
|
|
|
|
let g:syntastic_check_on_wq = 0
|
|
|
|
|
2020-11-24 17:19:55 +00:00
|
|
|
" Neomutt configuration for nvim compatibility
|
|
|
|
au BufRead /tmp/neomutt-* set tw=72
|
2021-04-28 12:15:47 +00:00
|
|
|
|
|
|
|
" Line wrapping shortcuts
|
|
|
|
function! ToggleWrap()
|
|
|
|
set wrap! linebreak! nolist!
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
nnoremap <leader>w :call ToggleWrap()<CR>
|
2021-07-03 13:45:41 +00:00
|
|
|
|
|
|
|
" Python configuration, Highlight self
|
|
|
|
augroup python
|
|
|
|
autocmd!
|
|
|
|
autocmd FileType python
|
|
|
|
\ syn keyword pythonSelf self
|
|
|
|
\ | highlight def link pythonSelf Special
|
|
|
|
|
|
|
|
augroup end
|
2022-12-06 14:37:25 +00:00
|
|
|
set mouse=
|