1
Fork 0

Clean up lapetus a bit

This commit is contained in:
prescientmoon 2024-11-09 12:45:25 +01:00
parent 2b082e9808
commit 0c6aff0470
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
16 changed files with 34 additions and 204 deletions
home/features/neovim
config/lua/my
default.nix
snippets

View file

@ -15,6 +15,8 @@ function M.enable()
swap("j")
swap("k")
swap("<up>")
swap("<down>")
swap("0")
swap("$")
end
@ -24,6 +26,8 @@ function M.disable()
unswap("j")
unswap("k")
unswap("<up>")
unswap("<down>")
unswap("0")
unswap("$")
end

View file

@ -41,9 +41,6 @@ table.insert(M, {
},
})
vim.cmd([[highlight NotifyINFOIcon guifg=#d6b20f]])
vim.cmd([[highlight NotifyINFOTitle guifg=#d6b20f]])
vim.cmd("colorscheme catppuccin")
end),
})

View file

@ -150,6 +150,7 @@ let
# Use global clipboard using *cp*
(keymap "nv" "<f11>" ''"+'' "Use global clipboard")
# Save using *ji*
(nmap "<f12>" (thunk ''
-- If we don't do this, the statusbar will flash for a second...
@ -181,8 +182,6 @@ let
}
# }}}
# {{{ Diagnostics
(dmap "[d" "goto_prev" "Goto previous [d]iagnostic")
(dmap "]d" "goto_next" "Goto next [d]iagnostic")
(dmap "J" "open_float" "Open current diagnostic")
(dmap "<leader>D" "setloclist" "[D]iagnostic loclist")
(nmap "qj" "J" "join lines")
@ -197,7 +196,9 @@ let
# lua
thunk "vim.opt.spell = not vim.o.spell"
) "toggle [s]pell checker")
(nmap "<leader>yp" "<cmd>!curl --data-binary @% https://paste.rs<cr>" "[y]ank [p]aste.rs link")
(nmap "<leader>yp" "<cmd>!curl --data-binary @% https://paste.rs | wl-copy<cr>"
"[y]ank [p]aste.rs link to clipboard"
)
# }}}
];
# }}}
@ -1072,7 +1073,7 @@ let
};
};
# tinymist.settings.exportPdf = "onType";
tinymist.settings.exportPdf = "onSave";
tinymist.offset_encoding = "utf-8";
cssls = { };
@ -1490,6 +1491,12 @@ let
};
};
# }}}
# {{{ justfile support
just = {
package = "NoahTheDuke/vim-just";
event = "VeryLazy";
};
# }}}
# }}}
# {{{ external
# These plugins integrate neovim with external services

View file

@ -182,7 +182,7 @@ block math
-- {{{ Constants
for constkind <- @⟨default,shortened⟩
for constant <- @⟨@constkind:
@⟨star,delta,Delta,pi,tau,psi,phi,rho,sigma,alpha,beta,theta,gamma,omega,Omega,half,ordop,land,lor⟩,
@⟨star,delta,Delta,pi,tau,psi,Psi,phi,rho,sigma,alpha,beta,theta,gamma,omega,Omega,half,ordop,land,lor⟩,
@⟨lam,eps,iinf⟩
for expansion <- @⟨@constkind:
@ -248,7 +248,7 @@ block math
for noperator <- @⟨ordop,land,lor,equiv,pmod,ldots,cdots,perp,angle,sup⟩
abbr @noperator \\@noperator
for operator <- @⟨overline,hat,bar,abs,norm,prob,diprod,sin,cos,sqrt,ln,lrb,zmod,gen,diam,prob⟩
for operator <- @⟨overline,hat,bar,abs,norm,prob,diprod,sin,cos,sqrt,ln,lrb,zmod,gen,pmob⟩
string @operator
snip \\@operator$|1⟨{$1}, $0⟩