This repository has been archived by the owner on Jul 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.nvimrc
51 lines (47 loc) · 3.31 KB
/
.nvimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"---------- clang-format settings --------""
function! FormatCurrentFile()
"execute "normal! gg=G"
"silent execute "!clang-format -style=WebKit -i" . " " . expand('%:p')
silent execute "!uncrustify -c ./uncrustify.cfg" . " " . expand('%:p') . " " . "--replace --no-backup"
:e
endfunction
au BufEnter,BufWrite *.vala call FormatCurrentFile()
"------------- vim-quickui settings ------------------"
let s:update = "update | w |"
let s:meson_build = 'nix-shell --command \"meson build --prefix=/usr; ln -s build/compile_commands.json .; cd build; ninja; \"' . '\n'
let s:project_clear = "clear; rm compile_commands.json; rm -rfv build/**; rm -rfv debug/**; rm -rfv release/**; \n"
let s:ninja_isntall = "cd build; sudo ninja install; pkill wingpanel -9 \n"
let s:ninja_unisntall = "cd build; sudo ninja uninstall \n"
call quickui#menu#clear('P&roject')
" biurc--dwayest
call quickui#menu#install('P&roject', [
\ [ 'meson(&build)', s:update.'call HTerminal(0.4, 300.0, "'. s:meson_build .'")' ],
\ [ 'ninja(&install)', s:update.'call HTerminal(0.4, 300.0, "'. s:ninja_isntall .'")' ],
\ [ 'ninja(&uninstall)', s:update.'call HTerminal(0.4, 300.0, "'. s:ninja_unisntall .'")' ],
\ [ '&remove-indicator()', s:update.'call HTerminal(0.4, 300.0, "clear; sudo rm /usr/lib/wingpanel/lib'. $FULL_NAME .'.so \n")' ],
\ [ '&clean-project', s:update.'call HTerminal(0.4, 300.0, "'. s:project_clear .'")' ],
\ [ "--", '' ],
\ [ 'gtk3-&demo', 'call jobstart("gtk3-demo")' ],
\ [ 'gtk3-&widget-factory', 'call jobstart("gtk3-widget-factory")' ],
\ [ 'gtk3-demo-&application', 'call jobstart("gtk3-demo-application")' ],
\ [ 'ke&ys', 'call ExecCommands("Gsettings keys", "!gsettings list-recursively '. $FULL_NAME .'")' ],
\ [ '&enbale-gtk-inspector', 'call ExecCommands("Gsettings keys", "!gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true")' ],
\ [ 'di&sable-gtk-inspector', 'call ExecCommands("Gsettings keys", "!gsettings set org.gtk.Settings.Debug enable-inspector-keybinding false")' ],
\ [ 'rese&t-gsettings', 'call ExecCommands("Reset Gsettings", "!gsettings reset com.github.linarcx.giti directories")' ],
\ [ "--", '' ],
\ [ "nix-collect-garbage", 'call HTerminal(0.4, 300.0, "clear; nix-store --gc \n")' ],
\ ], 5000)
"coiustrpfs
call quickui#menu#install('&Debugging', [
\ [ "&continue\tF(5)", 'call feedkeys("\<Plug>VimspectorContinue")' ],
\ [ "step-&over\tF(6)", 'call feedkeys("\<Plug>VimspectorStepOver")' ],
\ [ "step-&into\tF(7)", 'call feedkeys("\<Plug>VimspectorStepInto")' ],
\ [ "step-o&ut\tF(8)", 'call feedkeys("\<Plug>VimspectorStepOut")' ],
\ [ "&stop\tF(9)", 'call feedkeys("\<Plug>VimspectorStop")' ],
\ [ "&toggle-breakpoint\tF(10)", 'call feedkeys("\<Plug>VimspectorToggleBreakpoint")' ],
\ [ "&pause\tShift-p", 'call feedkeys("\<Plug>VimspectorPause")' ],
\ [ "&restart\tShift-r", 'call feedkeys("\<Plug>VimspectorRestart")' ],
\ [ "clo&se-debugger\tShift-s", ':call vimspector#Reset()' ],
\ ], 5001)
"gsettings get org.gtk.Settings.Debug enable-inspector-keybinding
"gsettings reset com.github.linarcx.giti directories