From 29811e0f2396ebbb0738b7fb0f3b5c20f9eaa291 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 18 Apr 2023 01:14:01 +0100 Subject: [PATCH] nvim/options: disable default LazyVim options Thanks to @folke for the workaround. https://github.com/LazyVim/LazyVim/issues/566 --- nvim/init.lua | 1 + nvim/lua/config/options.lua | 21 +-------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index bc3ed51..5f7a282 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -2,4 +2,5 @@ vim.cmd([[ source $XDG_CONFIG_HOME/vim/vimrc ]]) -- bootstrap lazy.nvim, LazyVim and your plugins +package.loaded["lazyvim.config.options"] = true require("config.lazy") diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 1bc95c8..60c4ad3 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -2,26 +2,7 @@ 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 +-- 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 -- 2.48.1