]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/config/options.lua
nvim: cmp configuration
[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 -- TODO: also try noinsert
9 opt.completeopt = "menu,menuone,noselect"
10
11 -- Some settings taken from LazyVim's default options
12 opt.pumblend = 10 -- Popup blend
13 opt.pumheight = 10 -- Maximum number of entries in a popup
14 opt.showmode = false -- Dont show mode since we have a statusline
15 opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
16 opt.updatetime = 200 -- Save swap file and trigger CursorHold
17 if vim.fn.has("nvim-0.9.0") == 1 then
18 opt.splitkeep = "screen"
19 opt.shortmess:append({ C = true })
20 end
21 -- do not let markdown plugin change indent
22 vim.g.markdown_recommended_style = 0