LazyVim/lua/config/options.lua

37 lines
762 B
Lua
Raw Normal View History

2023-01-07 10:52:40 +01:00
-- Options are automatically loaded before lazy.nvim startup
-- Default options: $HOME/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/options.lua
2023-10-13 15:40:59 +02:00
-- vim.g.mapleader = "²"
-- vim.g.maplocalleader = "³"
2023-10-10 17:30:55 +02:00
local opt = vim.opt
opt.autowrite = false
opt.clipboard = ""
2023-10-16 10:47:37 +02:00
opt.foldlevelstart = 5
2024-09-02 14:42:19 +02:00
opt.spell = true
opt.tabstop = 8
2023-04-17 18:12:02 +02:00
opt.whichwrap = "b,s,<,>,[,]"
2023-10-10 17:30:55 +02:00
opt.wrapscan = false
2023-06-15 14:01:57 +02:00
2024-06-04 15:31:50 +02:00
vim.g.deprecation_warnings = true
2024-09-02 15:18:49 +02:00
-- Auto-format
--
local set_autoformat = function(pattern, bool_val)
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = pattern,
callback = function()
vim.b.autoformat = bool_val
end,
})
end
vim.g.autoformat = false
--set_autoformat({ "cpp" }, true)
2023-06-15 14:01:57 +02:00
-- filetype
--
vim.g.markdown_folding = 1
2024-06-20 18:44:47 +02:00
vim.g.mkdp_refresh_slow = 1