X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/fb9c5fe3a848dab8e9ed252a45efd1e4815473c6..fdd63454b51a35418ec23d3489cf20ae66a2299d:/nvim/lua/config/options.lua?ds=sidebyside diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 757eeed..cd18d69 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -2,30 +2,19 @@ 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 +vim.g.man_hardwrap = 1 +vim.env.MANWIDTH = 80 + +vim.diagnostic.config({ virtual_text = false }) + +-- TODO: also try noinsert 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 --- FIXME: --- 2. settings I might want to include when disabling options works +-- Some settings taken from LazyVim's default options 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.timeoutlen = 300 opt.updatetime = 200 -- Save swap file and trigger CursorHold if vim.fn.has("nvim-0.9.0") == 1 then opt.splitkeep = "screen" @@ -33,3 +22,7 @@ if vim.fn.has("nvim-0.9.0") == 1 then end -- do not let markdown plugin change indent vim.g.markdown_recommended_style = 0 + +vim.g.lazyvim_picker = "telescope" + +vim.g.snacks_animate = false