nvim-macos/lua/options.lua

49 lines
1.2 KiB
Lua
Raw Normal View History

2025-07-02 14:50:25 +02:00
vim.o.number = true
vim.o.relativenumber = true
2025-07-16 16:34:14 +02:00
vim.opt.spelllang = { "en_us", "nl" }
2025-07-02 16:12:32 +02:00
vim.opt.termguicolors = true
2025-07-02 14:50:25 +02:00
vim.o.mouse = "a"
vim.schedule(function()
vim.o.clipboard = "unnamedplus"
end)
vim.o.breakindent = true
vim.o.undofile = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.signcolumn = "yes"
vim.o.timeoutlen = 300
vim.o.splitright = true
vim.o.splitbelow = true
vim.o.list = true
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "" }
-- Preview substitutions live, as you type!
vim.o.inccommand = "split"
-- Show which line your cursor is on
vim.o.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.
vim.o.scrolloff = 10
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
-- instead raise a dialog asking if you wish to save the current file(s)
-- See `:help 'confirm'`
vim.o.confirm = true
2025-07-16 16:34:14 +02:00
-- from #nvim-ufo https://github.com/kevinhwang91/nvim-ufo?tab=readme-ov-file#installation
vim.o.foldcolumn = "1" -- '0' is not bad
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99
vim.o.foldenable = true