mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 11:43:03 +03:00
Merge branch 'master' of https://github.com/SqrtMinusOne/configs
This commit is contained in:
commit
83450733e4
2 changed files with 31 additions and 4 deletions
|
|
@ -43,6 +43,7 @@ Plug 'easymotion/vim-easymotion'
|
||||||
Plug 'yuttie/comfortable-motion.vim'
|
Plug 'yuttie/comfortable-motion.vim'
|
||||||
Plug 'vim-scripts/restore_view.vim'
|
Plug 'vim-scripts/restore_view.vim'
|
||||||
Plug 'ericbn/vim-relativize'
|
Plug 'ericbn/vim-relativize'
|
||||||
|
Plug 'majutsushi/tagbar'
|
||||||
|
|
||||||
"Other files
|
"Other files
|
||||||
Plug 'elzr/vim-json'
|
Plug 'elzr/vim-json'
|
||||||
|
|
@ -111,10 +112,18 @@ map <C-m> :UndotreeToggle<CR>
|
||||||
|
|
||||||
noremap <silent> <ScrollWheelDown> :call comfortable_motion#flick(40)<CR>
|
noremap <silent> <ScrollWheelDown> :call comfortable_motion#flick(40)<CR>
|
||||||
noremap <silent> <ScrollWheelUp> :call comfortable_motion#flick(-40)<CR>
|
noremap <silent> <ScrollWheelUp> :call comfortable_motion#flick(-40)<CR>
|
||||||
|
nnoremap <Tab> :TagbarToggle<CR>
|
||||||
|
|
||||||
|
"Splits
|
||||||
|
nnoremap <C-J> <C-W><C-J>
|
||||||
|
nnoremap <C-K> <C-W><C-K>
|
||||||
|
nnoremap <C-L> <C-W><C-L>
|
||||||
|
nnoremap <C-H> <C-W><C-H>
|
||||||
|
|
||||||
"Other mappings
|
"Other mappings
|
||||||
nmap <C-p> :Files<CR>
|
nmap <C-p> :Files<CR>
|
||||||
:tnoremap <Esc> <C-\><C-n>
|
:tnoremap <Esc> <C-\><C-n>
|
||||||
|
nmap , :lclose<CR> :pclose<CR>
|
||||||
|
|
||||||
"Snippets
|
"Snippets
|
||||||
let g:UltiSnipsUsePythonVersion = 3
|
let g:UltiSnipsUsePythonVersion = 3
|
||||||
|
|
@ -123,7 +132,7 @@ let g:UltiSnipsJumpForwardTrigger="<C-S-j>"
|
||||||
let g:UltiSnipsJumpBackwardTrigger=""
|
let g:UltiSnipsJumpBackwardTrigger=""
|
||||||
|
|
||||||
"Formatting
|
"Formatting
|
||||||
command! JSONFormatCursor :silent! exe jdaddy#reformat('jdaddy#inner_pos', v:count1)<CR>
|
"command! JSONFormatCursor :silent! exe jdaddy#reformat('jdaddy#inner_pos', v:count1)<CR>
|
||||||
|
|
||||||
"Indent stuff
|
"Indent stuff
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
|
|
@ -151,7 +160,7 @@ au Filetype tex
|
||||||
|
|
||||||
|
|
||||||
let g:indent_guides_enable_on_vim_startup = 1
|
let g:indent_guides_enable_on_vim_startup = 1
|
||||||
let g:indent_guides_exclude_filetypes = ['help', 'nerdtree']
|
let g:indent_guides_exclude_filetypes = ['help', 'nerdtree', 'tagbar']
|
||||||
let g:indent_guides_guide_size = 1
|
let g:indent_guides_guide_size = 1
|
||||||
|
|
||||||
"Syntax
|
"Syntax
|
||||||
|
|
@ -166,7 +175,6 @@ syntax on
|
||||||
"let g:syntastic_check_on_open = 1
|
"let g:syntastic_check_on_open = 1
|
||||||
"let g:syntastic_check_on_wq = 0
|
"let g:syntastic_check_on_wq = 0
|
||||||
|
|
||||||
"Install: python-language-server, pylama, autopep8
|
|
||||||
let g:ale_open_list = 'on_save'
|
let g:ale_open_list = 'on_save'
|
||||||
let g:ale_list_window_size = 7
|
let g:ale_list_window_size = 7
|
||||||
let g:ale_close_preview_on_insert = 1
|
let g:ale_close_preview_on_insert = 1
|
||||||
|
|
@ -175,7 +183,7 @@ let g:ale_lint_on_enter = 0
|
||||||
let g:ale_completion_enabled = 0
|
let g:ale_completion_enabled = 0
|
||||||
let g:ale_linters = {'python': ['pyls'], 'tex': ['chktex']}
|
let g:ale_linters = {'python': ['pyls'], 'tex': ['chktex']}
|
||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\ 'python': ['autopep8', 'remove_trailing_lines', 'trim_whitespace'],
|
\ 'python': ['yapf', 'isort', 'remove_trailing_lines', 'trim_whitespace'],
|
||||||
\ 'tex': ['latexindent', 'textlint', 'remove_trailing_lines', 'trim_whitespace']
|
\ 'tex': ['latexindent', 'textlint', 'remove_trailing_lines', 'trim_whitespace']
|
||||||
\}
|
\}
|
||||||
let g:airline#extensions#ale#enabled = 1
|
let g:airline#extensions#ale#enabled = 1
|
||||||
|
|
@ -208,6 +216,8 @@ let g:airline_powerline_fonts = 1
|
||||||
highlight! TermCursorNC guibg=red
|
highlight! TermCursorNC guibg=red
|
||||||
|
|
||||||
let g:colorizer_auto_filetype='css,html,python,js'
|
let g:colorizer_auto_filetype='css,html,python,js'
|
||||||
|
let g:tagbar_sort = 0
|
||||||
|
let g:tagbar_show_line_numbers = 1
|
||||||
|
|
||||||
"Rainbow brackets
|
"Rainbow brackets
|
||||||
let g:rainbow_active = 1
|
let g:rainbow_active = 1
|
||||||
|
|
|
||||||
17
nvim/readme.md
Normal file
17
nvim/readme.md
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Stuff to install
|
||||||
|
## Neovim
|
||||||
|
https://github.com/junegunn/vim-plug
|
||||||
|
https://github.com/ryanoasis/nerd-fonts#patched-fonts
|
||||||
|
`pip install neovim`
|
||||||
|
`npm i -g neovim`
|
||||||
|
|
||||||
|
## Tagbar
|
||||||
|
`git clone https://github.com/universal-ctags/ctags`
|
||||||
|
`apt install autoconf automake`
|
||||||
|
`./autogen.sh`
|
||||||
|
`./configure --prefix=/where/you/want # defaults to /usr/local`
|
||||||
|
`make`
|
||||||
|
`make install # may require extra privileges depending on where to install`
|
||||||
|
|
||||||
|
## Python
|
||||||
|
`pip install neovim python-language-servers yapf isort pylama`
|
||||||
Loading…
Add table
Reference in a new issue