]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/config/options.lua
lazyvim: update options
[dotfiles.git] / nvim / lua / config / options.lua
index 3ea1454fa3580ee1ca5e9e9e03b87e5269aed64b..aeaca61d63544aa9a3cd28b6bc604a4d647ec73a 100644 (file)
@@ -1,3 +1,35 @@
 -- Options are automatically loaded before lazy.nvim startup
--- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
--- Add any additional options here
+
+local opt = vim.opt
+
+opt.fillchars = {
+  foldopen = "",
+  foldclose = "",
+  fold = " ",
+  foldsep = " ",
+  eob = " ",
+  diff = "⣿",
+  vert = "│",
+}
+
+vim.g.man_hardwrap = 1
+vim.env.MANWIDTH = 80
+
+vim.diagnostic.config({ virtual_text = false })
+
+-- TODO: also try noinsert
+opt.completeopt = "menu,menuone,noselect"
+
+-- Some settings taken from LazyVim's default options
+opt.pumblend = 10 -- Popup blend
+opt.pumheight = 10 -- Maximum number of entries in a popup
+opt.showmode = false -- Dont show mode since we have a statusline
+opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
+opt.updatetime = 200 -- Save swap file and trigger CursorHold
+opt.splitkeep = "screen"
+opt.shortmess:append({ C = true })
+opt.foldmethod = "expr"
+opt.foldexpr = "v:lua.require'rmz.util'.foldexpr()"
+
+-- do not let markdown plugin change indent
+vim.g.markdown_recommended_style = 0