1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-28 18:34:46 +01:00

NVIM: Keymap layout is now Lazy-centric

This commit is contained in:
2026-03-26 07:01:33 +01:00
parent 0f06cc10c8
commit 3c3cfd333d
43 changed files with 886 additions and 934 deletions

View File

@@ -1,23 +1,9 @@
vim.api.nvim_create_autocmd({ "VimEnter" }, {
callback = function()
require("tidy").opts.enabled_on_save = false
end,
})
vim.api.nvim_create_autocmd({ "BufEnter" }, {
callback = function()
vim.o.foldenable = false
end,
})
vim.api.nvim_create_autocmd({ "BufLeave" }, {
callback = function()
if vim.o.ma then
require("tidy").run()
end
end,
})
vim.api.nvim_create_autocmd({ "VimLeave" }, {
callback = function()
os.execute("mdclear " .. vim.fn.expand("%"))
@@ -27,14 +13,3 @@ vim.api.nvim_create_autocmd({ "VimLeave" }, {
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100
-- frabjous/knap
vim.keymap.set(
"n",
"<leader>p",
require("knap").toggle_autopreviewing,
{ noremap = true, desc = "Knap: toggle autopreview" }
)
-- benlubas/molten-nvim
require("quarto").activate()