]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/config/options.lua
lazyvim: update options
[dotfiles.git] / nvim / lua / config / options.lua
1 -- Options are automatically loaded before lazy.nvim startup
2
3 local opt = vim.opt
4
5 opt.fillchars = {
6 foldopen = "",
7 foldclose = "",
8 fold = " ",
9 foldsep = " ",
10 eob = " ",
11 diff = "⣿",
12 vert = "│",
13 }
14
15 vim.g.man_hardwrap = 1
16 vim.env.MANWIDTH = 80
17
18 vim.diagnostic.config({ virtual_text = false })
19
20 -- TODO: also try noinsert
21 opt.completeopt = "menu,menuone,noselect"
22
23 -- Some settings taken from LazyVim's default options
24 opt.pumblend = 10 -- Popup blend
25 opt.pumheight = 10 -- Maximum number of entries in a popup
26 opt.showmode = false -- Dont show mode since we have a statusline
27 opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
28 opt.updatetime = 200 -- Save swap file and trigger CursorHold
29 opt.splitkeep = "screen"
30 opt.shortmess:append({ C = true })
31 opt.foldmethod = "expr"
32 opt.foldexpr = "v:lua.require'rmz.util'.foldexpr()"
33
34 -- do not let markdown plugin change indent
35 vim.g.markdown_recommended_style = 0