mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Add DWM config
This commit is contained in:
parent
13c6216796
commit
f7c0cef79f
13 changed files with 407 additions and 131 deletions
|
|
@ -1,55 +1,47 @@
|
|||
filetype plugin on
|
||||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels
|
||||
Plug 'voldikss/vim-floaterm' " Terminal window
|
||||
Plug 'frazrepo/vim-rainbow' " Rainbow brackets
|
||||
Plug 'airblade/vim-gitgutter' " Git indicator
|
||||
Plug 'ap/vim-css-color' " CSS color preview
|
||||
Plug 'mhinz/vim-startify' " Start page
|
||||
Plug 'itchyny/lightline.vim' " Status line
|
||||
Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} " Notes manager in (n)vim
|
||||
|
||||
" Color scheme
|
||||
Plug 'Smirnov-O/nten16.vim'
|
||||
Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels
|
||||
Plug 'itchyny/lightline.vim' " Status line
|
||||
Plug 'Smirnov-O/nten16.vim' " Color scheme
|
||||
Plug 'frazrepo/vim-rainbow' " Rainbow brackets
|
||||
Plug 'mhinz/vim-startify' " Start page
|
||||
Plug 'ap/vim-css-color' " CSS color preview
|
||||
Plug 'airblade/vim-gitgutter' " Git indicator
|
||||
Plug 'preservim/nerdcommenter' " Code commenter
|
||||
|
||||
" Project/file navigation
|
||||
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
|
||||
Plug 'ryanoasis/vim-devicons', {'on': 'NERDTreeToggle'}
|
||||
Plug 'preservim/tagbar', {'on': 'TagbarToggle'}
|
||||
Plug 'kien/ctrlp.vim', {'on': 'CtrlP'}
|
||||
Plug 'easymotion/vim-easymotion'
|
||||
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
|
||||
Plug 'preservim/tagbar', {'on': 'TagbarToggle'}
|
||||
Plug 'kien/ctrlp.vim', {'on': 'CtrlP'}
|
||||
|
||||
" Completion
|
||||
" Completion & snippets
|
||||
Plug 'ycm-core/YouCompleteMe'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'SirVer/ultisnips'
|
||||
|
||||
" Language support
|
||||
Plug 'iamcco/markdown-preview.nvim', {'for': 'markdown'}
|
||||
Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'}
|
||||
" Language syntax
|
||||
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
|
||||
Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'}
|
||||
Plug 'xinhangliu/ficus.vim', {'for': 'markdown'}
|
||||
Plug 'vim-python/python-syntax', {'for': 'python'}
|
||||
Plug 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'}
|
||||
Plug 'mattn/emmet-vim', {'on': 'Emmet'}
|
||||
Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
|
||||
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
|
||||
Plug 'alaviss/nim.nvim', {'for': 'nim'}
|
||||
Plug 'fatih/vim-go', {'for': 'go'}
|
||||
"Plug 'nsf/gocode', {'for': 'go'}
|
||||
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
|
||||
Plug 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'}
|
||||
call plug#end()
|
||||
|
||||
" Colors
|
||||
" Theme
|
||||
set termguicolors
|
||||
set background=dark
|
||||
colo nten16
|
||||
colorscheme nten16
|
||||
set t_Co=256
|
||||
|
||||
" Syntax & line numbers
|
||||
" Syntax & number line
|
||||
syntax on
|
||||
set number
|
||||
set relativenumber
|
||||
set nu rnu
|
||||
|
||||
" Vim status line
|
||||
" Status line
|
||||
set noshowmode
|
||||
set ruler
|
||||
set showmode
|
||||
set showcmd
|
||||
|
||||
" Mouse
|
||||
|
|
@ -57,20 +49,20 @@ set mouse=a
|
|||
set mousehide
|
||||
set cursorline
|
||||
|
||||
" File encoding
|
||||
" Encoding
|
||||
set encoding=utf-8
|
||||
set fileencodings=utf8
|
||||
set fileencodings=utf-8
|
||||
|
||||
" Line wrap
|
||||
set nowrap
|
||||
set nolinebreak
|
||||
|
||||
" Backup files & history
|
||||
" Backup file & history
|
||||
set nobackup
|
||||
set noswapfile
|
||||
set history=100
|
||||
|
||||
" Auto reload file
|
||||
" Reload file
|
||||
set autoread
|
||||
|
||||
" Tabs
|
||||
|
|
@ -85,7 +77,7 @@ set incsearch
|
|||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" Buffer
|
||||
" Buffer(s)
|
||||
set hidden
|
||||
set smartindent
|
||||
|
||||
|
|
@ -96,61 +88,60 @@ set spelllang=en_us
|
|||
" Disable sound
|
||||
set visualbell t_vb=
|
||||
|
||||
" == Plugins configure
|
||||
|
||||
" Lightline
|
||||
" == Plugins configuration
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'nten16',
|
||||
\ 'active': {
|
||||
\ 'left': [ [ 'mode', 'paste' ],
|
||||
\ [ 'readonly', 'modified' ] ],
|
||||
\ 'right': [ [ 'lineinfo' ],
|
||||
\ [ 'percent' ],
|
||||
\ [ 'filename', 'fileencoding', 'filetype' ] ]
|
||||
\ 'left': [ [ 'mode', 'paste' ],
|
||||
\ [ 'readonly', 'modified' ] ],
|
||||
\ 'right': [ [ 'lineinfo' ],
|
||||
\ [ 'percent' ],
|
||||
\ [ 'filename', 'filetype' ] ]
|
||||
\ }, }
|
||||
|
||||
" Nerdtree
|
||||
let NERDTreeIgnore = ['__pycache__', '.DS_Store', '.git']
|
||||
let g:NERDTreeWinPos = "right"
|
||||
let g:NERDTreeWinSize = 28
|
||||
let NERDTreeMinimalUI = 1
|
||||
let NERDTreeShowLineNumbers = 1
|
||||
let NERDTreeShowHidden = 0
|
||||
map <C-b> :NERDTreeToggle<CR>
|
||||
|
||||
" VimWiki
|
||||
let g:vimwiki_markdown_link_ext = 0
|
||||
let g:vimwiki_list = [{
|
||||
\ 'path': '~/Documents/Notes',
|
||||
\ 'syntax': 'markdown',
|
||||
\ 'ext': '.md',
|
||||
\ }]
|
||||
|
||||
" Coc
|
||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
|
||||
" Markdown
|
||||
let g:vim_markdown_folding_disabled = 1
|
||||
let g:markdown_fenced_languages = ['go', 'python', 'bash', 'sh=bash']
|
||||
let g:ficus_dir = "~/Documents/Notes"
|
||||
|
||||
" Easymotion
|
||||
let g:EasyMotion_do_mapping = 0
|
||||
let g:EasyMotion_smartcase = 1
|
||||
nmap f <Plug>(easymotion-s)
|
||||
nmap FF <Plug>(easymotion-overwin-line)
|
||||
nmap FD <Plug>(easymotion-overwin-f2)
|
||||
nmap FS <Plug>(easymotion-bd-w)
|
||||
|
||||
" CtrlP
|
||||
let g:ctrlp_custom_ignore = '\v[\/]\.git$'
|
||||
imap <C-p> :CtrlP<CR>
|
||||
nmap <C-p> :CtrlP<CR>
|
||||
|
||||
" Indent guides
|
||||
let g:indent_guides_enable_on_vim_startup = 1
|
||||
" Rainbow
|
||||
let g:rainbow_active = 1
|
||||
|
||||
" Python
|
||||
let g:python_highlight_all = 1
|
||||
let g:python_higlight_all = 1
|
||||
|
||||
" YouCompleteMe
|
||||
let g:ycm_key_list_previous_completion=['<Up>']
|
||||
|
||||
" UltiSnipts
|
||||
let g:UltiSnipsExpandTrigger="<c-tab>"
|
||||
let g:UltiSnipsListSnippets="<c-s-tab>"
|
||||
"let g:UltiSnipsJumpForwardTrigger="<c-j>"
|
||||
"let g:UltiSnipsJumpBackwardTrigger="<c-k>"
|
||||
|
||||
|
||||
" Go
|
||||
let g:go_template_autocreate = 0
|
||||
let g:go_highlight_structs = 1
|
||||
let g:go_highlight_methods = 1
|
||||
let g:go_highlight_functions = 1
|
||||
let g:go_highlight_operators = 1
|
||||
let g:go_highlight_build_constraints = 1
|
||||
let g:go_snippet_engine = ""
|
||||
|
||||
" TagBar
|
||||
let g:tagbar_autoclose = 1
|
||||
let g:tagbar_width = 18
|
||||
let g:tagbar_left = 1
|
||||
|
||||
" Nerdtree
|
||||
let NERDTreeIgnore = ['__pycache__', '.DS_Store', '.git']
|
||||
let g:NERDTreeWinPos = "right"
|
||||
let g:NERDTreeWinSize = 28
|
||||
let NERDTreeMinimalUI = 1
|
||||
|
||||
" CtrlP
|
||||
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
|
||||
|
||||
" Startify
|
||||
let g:startify_custom_header = [
|
||||
|
|
@ -164,47 +155,21 @@ let g:startify_lists = [
|
|||
\ { 'type': 'files', 'header': [" Files"] },
|
||||
\ ]
|
||||
|
||||
" Rainbow
|
||||
let g:rainbow_active = 1
|
||||
|
||||
" TagBar
|
||||
imap <F9> :TagbarToggle<CR>
|
||||
nmap <F9> :TagbarToggle<CR>
|
||||
let g:tagbar_autoclose = 1
|
||||
let g:tagbar_width = 18
|
||||
let g:tagbar_left = 1
|
||||
|
||||
" Floaterm
|
||||
let g:floaterm_title = "VimTermianl"
|
||||
let g:floaterm_wintype = "floating"
|
||||
let g:floaterm_position = "center"
|
||||
let g:floaterm_height = 0.7
|
||||
let g:floaterm_width = 0.6
|
||||
let g:floaterm_autoclose = 2
|
||||
nmap <A-t> :FloatermNew<CR>
|
||||
|
||||
" Go
|
||||
let g:go_template_autocreate = 0
|
||||
|
||||
" == Maping
|
||||
" == Mapping
|
||||
let mapleader=","
|
||||
|
||||
" Window(s)
|
||||
" window(s)
|
||||
nmap <C-h> :wincmd h<CR>
|
||||
nmap <C-j> :wincmd j<CR>
|
||||
nmap <C-k> :wincmd k<CR>
|
||||
nmap <C-l> :wincmd l<CR>
|
||||
nmap <A-q> :wincmd q<CR>
|
||||
nmap <A-c> :wincmd n<CR>
|
||||
nmap <A-z> :wincmd K<CR>
|
||||
nmap <A-x> :wincmd L<CR>
|
||||
nmap <A-h> :wincmd <<CR>
|
||||
nmap <A-l> :wincmd ><CR>
|
||||
nmap <A-c> :wincmd n<CR>
|
||||
|
||||
" Tab(s)
|
||||
noremap <C-Tab> :tabnext<CR>
|
||||
noremap <C-S-Tab> :tabprev<CR>
|
||||
noremap <C-n> :tabnew<CR>
|
||||
noremap <C-t> :tabnew<CR>
|
||||
noremap <C-w> :tabclose<CR>
|
||||
noremap <A-1> :tabn 1<CR>
|
||||
|
|
@ -220,3 +185,7 @@ noremap <A-9> :tabn 9<CR>
|
|||
" Buffer(s)
|
||||
noremap <leader>p :bnext<CR>
|
||||
noremap <leader>o :bprev<CR>
|
||||
|
||||
" Plugins
|
||||
map <F9> :TagbarToggle<CR>
|
||||
map <C-b> :NERDTreeToggle<CR>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue