diff --git a/alacritty.yml b/alacritty.yml index bc7eb224d80cd09cf3054e43985fb374b247e18f..b17e57c7b14602704c32fccdac7a24b9b62a0264 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -15,6 +15,14 @@ family: Berkeley Mono italic: family: Berkeley Mono +cursor: + blink_timeout: 0 + style: + blinking: "Always" + colors: primary: background: "#111111" + cursor: + text: "#000000" + cursor: "#ffffff" diff --git a/vimrc b/vimrc index 3b6201cd150a51586dcf324cb29301e650549593..6e4080cb1ec3f0f651bd0ede294347e57762408f 100644 --- a/vimrc +++ b/vimrc @@ -21,6 +21,10 @@ autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 autocmd Filetype c,cpp,lua,zig setlocal expandtab tabstop=4 shiftwidth=4 autocmd Filetype nix,html,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 +" External auto-formatters. +autocmd FileType c,cpp setlocal formatprg=clang-format +autocmd FileType go setlocal formatprg=gofmt + " Code commenting - https://stackoverflow.com/a/1676672. augroup CodeCommenting autocmd! @@ -32,10 +36,6 @@ autocmd FileType vim let b:comment_leader = '" ' augroup END noremap cc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch noremap cu :silent s/^\(\s*\)\V=escape(b:comment_leader,'\/')//e:nohlsearch - -" External auto-format programs. -autocmd FileType c,cpp setlocal formatprg=clang-format -autocmd FileType go setlocal formatprg=gofmt " FZF fuzzy finder integration. function! FZF()