]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/config/options.lua
Merge branch 'lazyvim'
[dotfiles.git] / nvim / lua / config / options.lua
1 -- Options are automatically loaded before lazy.nvim startup
2
3 local opt = vim.opt
4
5 vim.g.man_hardwrap = 1
6 vim.env.MANWIDTH = 80
7
8 vim.diagnostic.config({ virtual_text = false })
9
10 -- TODO: also try noinsert
11 opt.completeopt = "menu,menuone,noselect"
12
13 -- Some settings taken from LazyVim's default options
14 opt.pumblend = 10 -- Popup blend
15 opt.pumheight = 10 -- Maximum number of entries in a popup
16 opt.showmode = false -- Dont show mode since we have a statusline
17 opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
18 opt.updatetime = 200 -- Save swap file and trigger CursorHold
19 if vim.fn.has("nvim-0.9.0") == 1 then
20 opt.splitkeep = "screen"
21 opt.shortmess:append({ C = true })
22 end
23 -- do not let markdown plugin change indent
24 vim.g.markdown_recommended_style = 0