]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/config/options.lua
nvim/ui: delete buffer instead of quit with q in dashboard
[dotfiles.git] / nvim / lua / config / options.lua
1 -- Options are automatically loaded before lazy.nvim startup
2
3 local opt = vim.opt
4
5 -- FIXME: There's currently no way to disable LazyVim's default options, so
6 -- reset the ones from vimrc.
7 -- See https://github.com/LazyVim/LazyVim/issues/566
8 -- 1. settings that are overriden in LazyVim options
9 opt.clipboard = "" -- Sync with system clipboard
10 opt.completeopt = "menu,menuone,noselect"
11 opt.formatoptions:append("jcrnqlt") -- see vimrc for details
12 opt.formatoptions:remove("o") -- see vimrc for details
13 opt.number = false
14 opt.relativenumber = false
15 opt.scrolloff = 5
16 opt.shiftwidth = 4
17 opt.tabstop = 8
18 opt.sidescrolloff = 1
19 opt.splitbelow = false
20 opt.splitright = true
21 opt.timeoutlen = 1000
22
23 -- FIXME:
24 -- 2. settings I might want to include when disabling options works
25 opt.pumblend = 10 -- Popup blend
26 opt.pumheight = 10 -- Maximum number of entries in a popup
27 opt.showmode = false -- Dont show mode since we have a statusline
28 opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
29 opt.updatetime = 200 -- Save swap file and trigger CursorHold
30 if vim.fn.has("nvim-0.9.0") == 1 then
31 opt.splitkeep = "screen"
32 opt.shortmess:append({ C = true })
33 end
34 -- do not let markdown plugin change indent
35 vim.g.markdown_recommended_style = 0