nvim: remove txt dir

This commit is contained in:
Nico 2025-10-13 02:36:15 +11:00
parent b3ddfd1615
commit 208626113c
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
3 changed files with 0 additions and 47 deletions

View file

@ -1,21 +0,0 @@
-- opts
vim.opt.wrap = true
vim.opt.linebreak = true
vim.opt.textwidth = 80
vim.opt.formatoptions:append("t")
-- ai slop that gets the job done
-- redo formatting when leaving the insert mode
vim.api.nvim_create_augroup("FormatText", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown", "txt" },
callback = function()
vim.api.nvim_create_autocmd("InsertLeave", {
buffer = 0,
callback = function()
vim.cmd("normal! gggqG")
end,
})
end,
})

View file

@ -1,16 +0,0 @@
-- another slopination by ai
vim.api.nvim_create_augroup("LoadLuaOnMarkdownOrTxt", { clear = true })
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
pattern = {"*.md", "*.txt"},
callback = function()
require("nico.txt.enter")
end
})
vim.api.nvim_create_autocmd("BufLeave", {
pattern = {"*.md", "*.txt"},
callback = function()
require("nico.txt.leave")
require("nico.opts")
end
})

View file

@ -1,10 +0,0 @@
-- opts
-- neovim defaults
vim.opt.wrap = true
vim.opt.linebreak = false
vim.opt.textwidth = 0
vim.opt.formatoptions = "tcqj"
-- ai slop that gets the job done
-- disables redo formatting when leaving the insert mode
vim.api.nvim_create_augroup("FormatText", { clear = true })