diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-27 16:30:09 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-27 16:30:09 +0100 |
commit | 52ae8bd5f0a3f3535311c3eae33bc8b19d1184cc (patch) | |
tree | 7028490bc295c6d129e02d7008e0b97c29d59231 | |
parent | 6cf0596af2aad885944df8d3b5a19e960147f565 (diff) |
auxiliary updates
-rw-r--r-- | .config/nvim/init.vim | 3 | ||||
-rwxr-xr-x | .local/share/bin/mk | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 6d285af..35566e8 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -33,7 +33,8 @@ if exists("g:neovide") nmap <silent> <C--> :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1<CR> nmap <silent> <C-ScrollWheelDown> :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1<CR> nmap <silent> <C-0> :lua vim.g.neovide_scale_factor = 1<CR> - let g:neovide_scroll_animation_length = 0.2 + let g:neovide_scroll_animation_length = 0.18 + let g:neovide_floating_shadow = v:false let g:neovide_cursor_animation_length = 0.06 let g:neovide_cursor_trail_size = 0.0 let g:neovide_padding_top=16 diff --git a/.local/share/bin/mk b/.local/share/bin/mk index c9c2e5b..ab0f586 100755 --- a/.local/share/bin/mk +++ b/.local/share/bin/mk @@ -12,13 +12,15 @@ mode_cmake() { [ "$*" = "clean" ] && exec rm -rf "$builddir" + export CMAKE_GENERATOR="Ninja" + # re-run configuration if fresh or CMakeLists was changed if [ ! -e "$builddir/build.ninja" ] || [ "CMakeLists.txt" -nt "$builddir/build.ninja" ] ; then - cmake --log-level WARNING -B "$builddir" -G Ninja + cmake --log-level WARNING -B "$builddir" fi - cd "$builddir" && exec ninja "$@" + exec cmake --build "$builddir" -- "$@" } [ -e "CMakeLists.txt" ] && mode_cmake "$@" |