added i3 scratchpad changes and some vim nerdtree and transparent background changes

nvim
spinach 2 years ago
parent 0ad2b4ce72
commit 09e11d7a2c

3
.gitmodules vendored

@ -32,6 +32,9 @@
[submodule "vimtex"] [submodule "vimtex"]
path = editors/vim/pack/man/start/vimtex path = editors/vim/pack/man/start/vimtex
url = https://github.com/lervag/vimtex.git url = https://github.com/lervag/vimtex.git
[submodule "vim-nerdtree-tabs"]
path = editors/vim/pack/man/start/vim-nerdtree-tabs
url = https://github.com/jistr/vim-nerdtree-tabs
[submodule "tmux-mem-cpu-load"] [submodule "tmux-mem-cpu-load"]
path = src/tmux-mem-cpu-load path = src/tmux-mem-cpu-load
url = https://github.com/thewtex/tmux-mem-cpu-load url = https://github.com/thewtex/tmux-mem-cpu-load

@ -1 +1 @@
Subproject commit df4be8626e2c5b2a42eb60e1f100fce469b81f7d Subproject commit 5d3d1b6cbdc4be0b4c6105c1ab1f769d76d3c68f

@ -0,0 +1 @@
Subproject commit 07d19f0299762669c6f93fbadb8249da6ba9de62

@ -1 +1 @@
Subproject commit 6e79c4fa42ef0eb5216220afe835be8fe9d2369d Subproject commit b09112bf83ae5e308102a9c07d25f7dba6690675

@ -17,6 +17,20 @@ set nocompatible
set background=dark set background=dark
syntax enable syntax enable
colorscheme hybrid colorscheme hybrid
" default transparent bg
hi Normal guibg=NONE ctermbg=NONE
let t:is_transparent = 1
"toggle func
function! ToggleTransparent()
if t:is_transparent == 0
hi Normal guibg=NONE ctermbg=NONE
let t:is_transparent = 1
else
set background=dark
let t:is_transparent = 0
endif
endfunction
nnoremap <silent> <leader>b : call ToggleTransparent()<CR>
" syntax highlighting for go " syntax highlighting for go
let g:go_highlight_types=1 let g:go_highlight_types=1
@ -30,6 +44,7 @@ let g:go_highlight_extra_types=1
let g:vim_markdown_folding_disabled = 1 let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_math = 1 let g:vim_markdown_math = 1
let g:vim_markdown_strikethrough = 1 let g:vim_markdown_strikethrough = 1
let g:vim_markdown_new_list_item_indent = 4
" use md for vim wiki and disable global linking " use md for vim wiki and disable global linking
let g:vimwiki_list = [{'path': '~/vimwiki/', let g:vimwiki_list = [{'path': '~/vimwiki/',
@ -54,6 +69,11 @@ let g:airline_symbols.dirty = ''
" nerdtree settings " nerdtree settings
let NERDTreeHighlightCursorLine=1 let NERDTreeHighlightCursorLine=1
let NERDTreeQuitOnOpen=1 let NERDTreeQuitOnOpen=1
" nerdtree tab settings
let g:nerdtree_tabs_open_on_console_startup=2
let g:nerdtree_tabs_autoclose=1
let g:nerdtree_tabs_smart_startup_focus=1
"let g:nerd
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
" auto open on empty " auto open on empty
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
@ -62,8 +82,8 @@ autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif \ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
" nerdtree binds " nerdtree binds
nnoremap <silent> <leader>n :NERDTree<CR> nnoremap <silent> <leader>t :NERDTreeMirrorToggle<CR>
nnoremap <silent> <leader>t :NERDTreeMirror<CR>:NERDTreeToggle<CR> nnoremap <silent> <leader>n :NERDTreeFocusToggle<CR>
" nnoremap <C-f> :NERDTreeFocus<CR> going to conflict with fzf and I dont use " nnoremap <C-f> :NERDTreeFocus<CR> going to conflict with fzf and I dont use
" this anyway " this anyway
" "

@ -55,9 +55,9 @@ for_window [instance="cal"] move window to scratchpad
for_window [instance="spotify"] move window to scratchpad for_window [instance="spotify"] move window to scratchpad
for_window [instance="wiki"] move window to scratchpad for_window [instance="wiki"] move window to scratchpad
# bindings # bindings
bindsym $mod+s exec i3-scratchpad.sh todo st -n todo -e vim ~/vimwiki/todo/index.md bindsym $mod+x exec i3-scratchpad.sh todo st -n todo -e vim ~/vimwiki/todo/index.md
bindsym $mod+c exec i3-scratchpad.sh cal st -n cal -e calcurse bindsym $mod+c exec i3-scratchpad.sh cal st -n cal -e calcurse
bindsym $mod+m exec i3-scratchpad.sh spotify spotify bindsym $mod+s exec i3-scratchpad.sh spotify spotify
bindsym $mod+w exec i3-scratchpad.sh wiki st -n wiki -e vim ~/vimwiki/index.md bindsym $mod+w exec i3-scratchpad.sh wiki st -n wiki -e vim ~/vimwiki/index.md

Loading…
Cancel
Save