1
Fork 0
This commit is contained in:
prescientmoon 2024-02-26 12:56:54 +01:00
parent d560d0bf84
commit 248babab24
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
5 changed files with 24 additions and 5 deletions
home/features/neovim
config/ftplugin
default.nix

View file

@ -24,7 +24,12 @@ local function runLocal(functionName)
end
end
vim.keymap.set("n", "<leader>lf", ":source %<cr>", opts("Run [l]ua [f]ile "))
vim.keymap.set(
"n",
"<leader>lf",
"<cmd>source %<cr>",
opts("Run [l]ua [f]ile ")
)
vim.keymap.set(
"n",
"<leader>ls",

View file

@ -106,7 +106,12 @@ let
# Use global clipboard using *cp*
(keymap "nv" "<f11>" ''"+'' "Use global clipboard")
# Save using *ji*
(nmap "<f12>" "<cmd>silent write<cr>" "Save current file")
(nmap "<f12>"
(thunk ''
-- If we don't do this, the statusbar will flash for a second...
vim.cmd([[silent! write]])
vim.opt.stl = vim.opt.stl
'') "Save current file")
# }}}
# {{{ Newline without comments
{