mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 11:43:03 +03:00
145 lines
3.4 KiB
VimL
145 lines
3.4 KiB
VimL
call plug#begin('~/.local/share/nvim/plugged')
|
|
|
|
"UI
|
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
|
Plug 'jistr/vim-nerdtree-tabs'
|
|
Plug 'xuyuanp/nerdtree-git-plugin'
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
Plug 'crusoexia/vim-monokai'
|
|
Plug 'vim-airline/vim-airline-themes'
|
|
Plug 'lifepillar/vim-solarized8'
|
|
|
|
Plug 'kien/tabman.vim'
|
|
|
|
"Coding
|
|
Plug 'valloric/youcompleteme'
|
|
Plug 'tpope/vim-fugitive'
|
|
Plug 'luochen1990/rainbow'
|
|
Plug 'tpope/vim-surround'
|
|
Plug 'mbbill/undotree'
|
|
|
|
"Snippets stuff
|
|
Plug 'honza/vim-snippets'
|
|
Plug 'sirver/ultisnips'
|
|
|
|
"Python
|
|
Plug 'python-mode/python-mode', { 'branch': 'develop' }
|
|
Plug 'janko-m/vim-test'
|
|
Plug 'heavenshell/vim-pydocstring'
|
|
"Plug 'skyleach/pudb.vim'
|
|
|
|
"Other
|
|
Plug 'https://gitlab.com/code-stats/code-stats-vim.git'
|
|
Plug 'wakatime/vim-wakatime'
|
|
"Plug 'ctrlpvim/ctrlp.vim'
|
|
Plug 'lervag/vimtex'
|
|
Plug 'KeitaNakamura/tex-conceal.vim', {'for': 'tex'}
|
|
Plug 'tikhomirov/vim-glsl'
|
|
Plug 'scrooloose/syntastic'
|
|
Plug 'easymotion/vim-easymotion'
|
|
Plug 'nathanaelkane/vim-indent-guides'
|
|
Plug 'vim-scripts/restore_view.vim'
|
|
|
|
Plug 'raimondi/delimitmate'
|
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
|
|
Plug 'junegunn/fzf.vim'
|
|
|
|
|
|
Plug 'ryanoasis/vim-devicons'
|
|
call plug#end()
|
|
|
|
set runtimepath+=~/.config/nvim/my-snippets/
|
|
let g:codestats_api_key="SFMyNTY.VTNGeWRFMXBiblZ6VDI1bCMjTlRRek1RPT0.V3iEAki_kRH75zwoXQ3u5Zng-Q_h0XRlUsb9ld09Cdc"
|
|
let $FZF_DEFAULT_COMMAND='fd --type f --exclude .git'
|
|
|
|
"LaTeX
|
|
let g:tex_flavor='latex'
|
|
let g:vimtex_view_method='zathura'
|
|
let g:vimtex_quickfix_mode=0
|
|
set conceallevel=2
|
|
let g:tex_conceal='abdmgs'
|
|
let g:syntastic_tex_lacheck_quiet_messages = { 'regex': '\Vpossible unwanted space at' }
|
|
|
|
"Python
|
|
"let g:python_host_prog='/usr/bin/python'
|
|
"let g:python3_host_prog='/usr/bin/python3'
|
|
let g:pymode_python = 'python3'
|
|
let g:pymode_rope = 1
|
|
let g:pymode_rope_completion = 0
|
|
let NERDTreeIgnore = ['\.pyc$', '^__pycache__$']
|
|
let g:syntastic_ignore_files = ['\.py$']
|
|
|
|
map <F8> :PymodeRun<CR>
|
|
au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl setf glsl
|
|
|
|
"Usability
|
|
set number
|
|
set hlsearch
|
|
set cursorline
|
|
set mouse=a
|
|
set splitbelow
|
|
set splitright
|
|
|
|
map <C-n> :NERDTreeToggle<CR>
|
|
nmap <S-Ins> "+p
|
|
map <C-m> :UndotreeToggle<CR>
|
|
|
|
"Splits
|
|
nmap <C-h> <C-W>h
|
|
nmap <C-j> <C-W>j
|
|
nmap <C-k> <C-W>k
|
|
nmap <C-l> <C-W>l
|
|
|
|
"Other mappings
|
|
nmap <C-p> :Files<CR>
|
|
|
|
"Snippets
|
|
let g:UltiSnipsUsePythonVersion = 3
|
|
let g:UltiSnipsExpandTrigger="<C-j>"
|
|
let g:UltiSnipsJumpForwardTrigger="<C-S-j>"
|
|
let g:UltiSnipsJumpBackwardTrigger=""
|
|
|
|
"Indent stuff
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set smarttab
|
|
set expandtab
|
|
set smartindent
|
|
set autoindent
|
|
set foldmethod=indent
|
|
set foldlevelstart=1
|
|
let g:indent_guides_enable_on_vim_startup = 1
|
|
let g:indent_guides_exclude_filetypes = ['help', 'nerdtree']
|
|
let g:indent_guides_guide_size = 1
|
|
|
|
"Syntax
|
|
set statusline+=%#warningmsg#
|
|
set statusline+=%{SyntasticStatuslineFlag()}
|
|
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
|
|
|
|
|
|
"spell
|
|
"set spell spelllang=en,ru
|
|
|
|
"ui
|
|
colorscheme solarized8
|
|
set background=dark
|
|
let g:solarized_visibility='high'
|
|
set termguicolors
|
|
"set guifont=DroidSansMono\ Nerd\ Font\ 11
|
|
set laststatus=2
|
|
let g:airline_theme='powerlineish'
|
|
let g:airline_powerline_fonts = 1
|
|
|
|
"Rainbow brackets
|
|
let g:rainbow_active = 1
|
|
let g:rainbow_conf = {
|
|
\ 'guifgs': ['red', 'yellow', 'lightgreen', 'lightblue'],
|
|
\ }
|
|
hi Conceal guibg=Normal guifg=Normal
|