Clean up lapetus a bit
This commit is contained in:
parent
2b082e9808
commit
0c6aff0470
16 changed files with 34 additions and 204 deletions
home/features/neovim
|
@ -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
|
||||
|
|
|
@ -41,9 +41,6 @@ table.insert(M, {
|
|||
},
|
||||
})
|
||||
|
||||
vim.cmd([[highlight NotifyINFOIcon guifg=#d6b20f]])
|
||||
vim.cmd([[highlight NotifyINFOTitle guifg=#d6b20f]])
|
||||
|
||||
vim.cmd("colorscheme catppuccin")
|
||||
end),
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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⟩
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue