This repository was archived by the owner on Jul 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.nvimrc
38 lines (35 loc) · 2.44 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
"---------- clang-format settings --------""
function! FormatCurrentFile()
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:ninja_isntall = "cd build; sudo ninja install \n"
let s:ninja_unisntall = "cd build; sudo ninja uninstall \n"
let s:project_clear = "clear; rm compile_commands.json; rm -rfv build/**; rm -rfv debug/**; rm -rfv release/**; \n"
let s:meson_build = 'nix-shell --command \"meson build --prefix=/usr; ln -s build/compile_commands.json .; cd build; ninja; \"' . '\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 .'")' ],
\ [ '&run()', s:update.'call HTerminal(0.4, 300.0, "clear; /usr/bin/'. $FULL_NAME .' \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)
"gsettings get org.gtk.Settings.Debug enable-inspector-keybinding
"gsettings reset com.github.linarcx.giti directories
"execute "normal! gg=G"
"silent execute "!clang-format -style=WebKit -i" . " " . expand('%:p')