X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e9798ff294de57a0dd98d6cb8d6d57bdcc190aa3..1fec8ba93b7fcc520dec40acbdba237c1e67ca69:/nvim/lua/config/options.lua diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 3ea1454..1bc95c8 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -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 + +-- FIXME: There's currently no way to disable LazyVim's default options, so +-- reset the ones from vimrc. +-- See https://github.com/LazyVim/LazyVim/issues/566 +-- 1. settings that are overriden in LazyVim options +opt.clipboard = "" -- Sync with system clipboard +opt.completeopt = "menu,menuone,noselect" +opt.formatoptions:append("jcrnqlt") -- see vimrc for details +opt.formatoptions:remove("o") -- see vimrc for details +opt.number = false +opt.relativenumber = false +opt.scrolloff = 5 +opt.shiftwidth = 4 +opt.tabstop = 8 +opt.sidescrolloff = 1 +opt.splitbelow = false +opt.splitright = true +opt.timeoutlen = 1000 + +-- FIXME: +-- 2. settings I might want to include when disabling options works +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 +if vim.fn.has("nvim-0.9.0") == 1 then + opt.splitkeep = "screen" + opt.shortmess:append({ C = true }) +end +-- do not let markdown plugin change indent +vim.g.markdown_recommended_style = 0