nvim: remove txt dir
This commit is contained in:
parent
b3ddfd1615
commit
208626113c
3 changed files with 0 additions and 47 deletions
|
|
@ -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,
|
||||
})
|
||||
|
|
@ -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
|
||||
})
|
||||
|
|
@ -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 })
|
||||
Loading…
Add table
Add a link
Reference in a new issue