Compare commits

...

3 Commits

Author SHA1 Message Date
7df97df090
nvim: misc config changes 2023-04-30 12:57:12 -04:00
52770b9850
fish: add music recognition function 2023-04-26 19:24:25 -04:00
c723a3cac9
nvim: add t/T bind to leap 2023-04-26 19:19:37 -04:00
3 changed files with 37 additions and 1 deletions

View File

@ -31,3 +31,12 @@ function xx; $EDITOR ~/dox/not/xx.tsv; end
function dr; $EDITOR ~/dox/not/dr.txt; end
function bk; $EDITOR ~/dox/not/bk.txt; end
function rem; $EDITOR ~/dox/not/rem; end
# music recognition
function musrec
# if file exists
if test -e $argv
# recognize it
http --form POST "https://api.audd.io?api_token=$(cat ~/.config/audd_token)" file@$argv
end
end

View File

@ -1,7 +1,22 @@
set tabstop=4 shiftwidth=4 noexpandtab relativenumber ai nu rnu nosmd ignorecase smartcase
set tabstop=4 shiftwidth=4 noexpandtab ai nosmd ignorecase smartcase
" sign column on top of the line number (gutter for things like breakpoints, warnings)
set scl=number
" enable line numbers
set number relativenumber
" disable bottom right status line
set noruler
set showtabline=0
" performance?
set lazyredraw nocursorline ttyfast
" use system clipboard instead of internal
set clipboard=unnamedplus
" when using c, do not overwrite clipboard
nnoremap c "-c
let mapleader = ","

View File

@ -90,6 +90,18 @@ require('dressing').setup({
-- fancy motions (leap.nvim)
vim.keymap.set({'n', 'x', 'o'}, 'f', '<Plug>(leap-forward-to)')
vim.keymap.set({'n', 'x', 'o'}, 'F', '<Plug>(leap-backward-to)')
vim.keymap.set(
{'n', 'x', 'o'}, 't',
function ()
require("leap").leap { offset = 2 }
end
)
vim.keymap.set(
{'n', 'x', 'o'}, 'T',
function ()
require("leap").leap { backward = true, offset = 2 }
end
)
require('leap').opts.safe_labels = {
"a", "s", "d", "f", "g", "h", "j", "k", "l"
}