You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
Lua
43 lines
1.2 KiB
Lua
-- local augroup = vim.api.nvim_create_augroup
|
|
-- local autocmd = vim.api.nvim_create_autocmd
|
|
|
|
vim.cmd [[
|
|
hi CursorLine gui=underline
|
|
]]
|
|
|
|
|
|
-- Shift key typos
|
|
vim.cmd [[
|
|
command! -bang -nargs=* -complete=file E e<bang> <args>
|
|
command! -bang -nargs=* -complete=file W w<bang> <args>
|
|
command! -bang -nargs=* -complete=file Wq wq<bang> <args>
|
|
command! -bang -nargs=* -complete=file WQ wq<bang> <args>
|
|
command! -nargs=* -complete=help H h <args>
|
|
command! -bang Wa wa<bang>
|
|
command! -bang WA wa<bang>
|
|
command! -bang Q q<bang>
|
|
command! -bang QA qa<bang>
|
|
command! -bang Qa qa<bang>
|
|
]]
|
|
|
|
vim.cmd [[
|
|
" Autocompile suckless
|
|
let dwm_file_patterns = expand("$HOME/.local/src/suckless/*/{config.h,*.c}")
|
|
|
|
augroup DWM
|
|
au!
|
|
|
|
execute "au BufEnter " . dwm_file_patterns . " :lcd %:p:h"
|
|
execute "au BufWrite " . dwm_file_patterns . " :AsyncRun! make clean && make && sudo make install"
|
|
"au BufWrite */src/*/dwm*/{*.h,dwm.c} :AsyncRun! make clean && make && sudo make install
|
|
augroup END
|
|
]]
|
|
|
|
-- Make asyncrun work with fugitive
|
|
vim.cmd [[
|
|
augroup asyncrun
|
|
au!
|
|
command -bang -nargs=* -complete=file Make AsyncRun -program=make @ <args>
|
|
augroup END
|
|
]]
|