mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update: 2024-11-07
This commit is contained in:
@@ -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,
|
||||
}) ]]
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user