mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-20 00:54:41 +04:00
nix-update
This commit is contained in:
parent
94da1ce936
commit
284b131058
24 changed files with 7276 additions and 161 deletions
|
|
@ -22,9 +22,24 @@ while s:i < 10
|
|||
let s:i += 1
|
||||
endwhile
|
||||
|
||||
set clipboard=unnamedplus
|
||||
set clipboard+=unnamedplus
|
||||
|
||||
colorscheme tokyonight-night
|
||||
if system('uname -a') =~ '\<WSL2\>'
|
||||
let g:clipboard = {
|
||||
\ 'name': 'WslClipboard',
|
||||
\ 'copy': {
|
||||
\ '+': '/mnt/c/Windows/system32/clip.exe',
|
||||
\ '*': '/mnt/c/Windows/system32/clip.exe',
|
||||
\ },
|
||||
\ 'paste': {
|
||||
\ '+': ['/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe', '-NoLogo', '-NoProfile', '-c', '[Console]::Out.Write($(Get-Clipboard\ -Raw).tostring().replace("`r",""))'],
|
||||
\ '*': ['/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe', '-NoLogo', '-NoProfile', '-c', '[Console]::Out.Write($(Get-Clipboard\ -Raw).tostring().replace("`r",""))'],
|
||||
\ },
|
||||
\ 'cache_enabled': 0,
|
||||
\ }
|
||||
endif
|
||||
|
||||
" colorscheme tokyonight-night
|
||||
if exists(':GuiRenderLigatures')
|
||||
GuiRenderLigatures 1
|
||||
endif
|
||||
|
|
@ -33,43 +48,47 @@ if exists(':GuiFont')
|
|||
GuiFont FiraCode\ Nerd\ Font
|
||||
endif
|
||||
|
||||
if exists(':NERDTreeToggle')
|
||||
map <F3> :NERDTreeToggle<CR>
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
endif
|
||||
function s:post_load()
|
||||
if exists(':NERDTreeToggle')
|
||||
map <F3> :NERDTreeToggle<CR>
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
endif
|
||||
|
||||
if exists(':BufferGoto')
|
||||
let s:i = 1
|
||||
while s:i < 10
|
||||
execute printf('nmap <Leader>%i :BufferGoto %i<CR>', s:i, s:i)
|
||||
let s:i += 1
|
||||
endwhile
|
||||
if exists(':BufferGoto')
|
||||
let s:i = 1
|
||||
while s:i < 10
|
||||
execute printf('nmap <Leader>%i :BufferGoto %i<CR>', s:i, s:i)
|
||||
let s:i += 1
|
||||
endwhile
|
||||
|
||||
nmap <C-Right> :BufferNext<CR>
|
||||
nmap <C-Left> :BufferPrevious<CR>
|
||||
nmap <C-q> :BufferClose<CR>
|
||||
endif
|
||||
nmap <C-Right> :BufferNext<CR>
|
||||
nmap <C-Left> :BufferPrevious<CR>
|
||||
nmap <C-q> :BufferClose<CR>
|
||||
endif
|
||||
|
||||
if exists(':DetectIndent')
|
||||
autocmd BufRead * DetectIndent
|
||||
endif
|
||||
if exists(':DetectIndent')
|
||||
autocmd BufRead * DetectIndent
|
||||
endif
|
||||
|
||||
if exists(':CocInfo')
|
||||
inoremap <silent><expr> <c-space> coc#refresh()
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ coc#pum#visible() ? coc#pum#confirm() : "\<Tab>"
|
||||
nmap <silent> <Space>ld <Plug>(coc-definition)
|
||||
nmap <silent> <Space>lt <Plug>(coc-type-definition)
|
||||
nmap <silent> <Space>li <Plug>(coc-implementation)
|
||||
nmap <silent> <Space>lr <Plug>(coc-references)
|
||||
endif
|
||||
if exists(':CocInfo')
|
||||
inoremap <silent><expr> <c-space> coc#refresh()
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ coc#pum#visible() ? coc#pum#confirm() : "\<Tab>"
|
||||
nmap <silent> <Space>ld <Plug>(coc-definition)
|
||||
nmap <silent> <Space>lt <Plug>(coc-type-definition)
|
||||
nmap <silent> <Space>li <Plug>(coc-implementation)
|
||||
nmap <silent> <Space>lr <Plug>(coc-references)
|
||||
endif
|
||||
|
||||
if exists(':LeaderGuide')
|
||||
nnoremap <silent> <leader> :<c-u>LeaderGuide '\'<CR>
|
||||
nnoremap <silent> <Space> :<c-u>LeaderGuide '<Space>'<CR>
|
||||
let g:smap = get(g:, 'smap', {})
|
||||
" let g:smap['<Space>'] = get(g:smap, '<Space>', {})
|
||||
" let g:smap['<Space>'].l = 'language'
|
||||
let g:smap.l = {'name' : 'language'}
|
||||
call leaderGuide#register_prefix_descriptions("<Space>", "g:smap")
|
||||
endif
|
||||
if exists(':LeaderGuide')
|
||||
nnoremap <silent> <leader> :<c-u>LeaderGuide '\'<CR>
|
||||
nnoremap <silent> <Space> :<c-u>LeaderGuide '<Space>'<CR>
|
||||
let g:smap = get(g:, 'smap', {})
|
||||
" let g:smap['<Space>'] = get(g:smap, '<Space>', {})
|
||||
" let g:smap['<Space>'].l = 'language'
|
||||
let g:smap.l = {'name' : 'language'}
|
||||
call leaderGuide#register_prefix_descriptions("<Space>", "g:smap")
|
||||
endif
|
||||
endfunction
|
||||
|
||||
:au VimEnter * call s:post_load()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue