Update: 2024-11-07

This commit is contained in:
2024-11-07 10:00:10 +02:00
parent 1f6468b827
commit a0fd8d93e2
12 changed files with 102 additions and 36 deletions

View File

@@ -109,3 +109,23 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
end
end,
})
--[[ local function setup_soft_wrap()
vim.opt_local.wrap = true
vim.opt_local.linebreak = true
vim.opt_local.columns = 85
vim.api.nvim_create_autocmd({ "VimResized" }, {
buffer = 0,
callback = function()
if vim.opt.columns:get() > 85 then
vim.opt.columns = 85
end
end,
})
vim.opt_local.colorcolumn = "80"
end
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "markdown", "norg", "typst", "tex" },
callback = setup_soft_wrap,
}) ]]

View File

@@ -52,7 +52,6 @@ vim.opt.updatetime = 50 -- faster completion (4000ms default)
vim.opt.whichwrap:append("<,>,[,],h,l")
vim.opt.wrap = false -- display lines as one long line
vim.opt.writebackup = false -- if a file is being edited by another program (or was written to file while editing with another program) it is not allowed to be edit
vim.opt_local.path:prepend(vim.fn.stdpath("config") .. "/lua")
vim.opt_local.suffixesadd:prepend(".lua")
vim.opt_local.suffixesadd:prepend("init.lua")