-- Options are automatically loaded before lazy.nvim startup -- Default options: $HOME/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/options.lua -- vim.g.mapleader = "²" -- vim.g.maplocalleader = "³" local opt = vim.opt opt.autowrite = false opt.clipboard = "" opt.foldlevelstart = 5 opt.spell = true opt.tabstop = 8 opt.whichwrap = "b,s,<,>,[,]" opt.wrapscan = false vim.g.deprecation_warnings = true -- 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) -- filetype -- vim.g.markdown_folding = 1 vim.g.mkdp_refresh_slow = 1