dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit 46869fb927e5e186b80300991a77027d24e99b24
parent f531dd14a38b71f010938d4aa96c87822c4a8cc2
Author: Ashymad <czilukim@o2.pl>
Date:   Wed, 16 May 2018 10:31:36 +0200

Add CamelCase movement

Diffstat:
Mnvim/.config/nvim/init.vim | 30++++++++++++++++++++++++------
1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim @@ -48,8 +48,14 @@ Plug 'Shougo/neosnippet-snippets' " Git Plug 'tpope/vim-fugitive' +" Camel/Snake case movement +Plug 'bkad/CamelCaseMotion' + call plug#end() +" Enable CamelCaseMotion +call camelcasemotion#CreateMotionMappings('<leader>') + " Deoplete let g:deoplete#enable_at_startup = 1 inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>" @@ -60,6 +66,22 @@ set completeopt+=noinsert let g:neosnippet#enable_completed_snippet = 1 +"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. +"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support +"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) +if (empty($TMUX)) + if (has("nvim")) + "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > + let $NVIM_TUI_ENABLE_TRUE_COLOR=1 + endif + "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > + "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > + " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > + if (has("termguicolors")) + set termguicolors + endif +endif + " Disable latexBox in polyglot let g:polyglot_disabled = ['latex'] @@ -98,12 +120,6 @@ let g:deoplete#omni#input_patterns.tex = g:vimtex#re#deoplete map <C-l> :NERDTreeToggle<CR> -" let g:ycm_python_binary_path = 'python' -" -" if !exists('g:ycm_semantic_triggers') -" let g:ycm_semantic_triggers = {} -" endif -" let g:ycm_semantic_triggers.tex = g:vimtex#re#youcompleteme set hidden let g:LanguageClient_serverCommands = { @@ -116,6 +132,8 @@ nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR> nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR> nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR> +let R_latexcmd = ['latexmk','-pdf','-pdflatex="xelatex -synctex=1 -interaction=nonstopmode"'] + syntax on colorscheme onedark set noshowmode