]> git.rmz.io Git - dotfiles.git/commitdiff
nvim/options: disable default LazyVim options
authorSamir Benmendil <me@rmz.io>
Tue, 18 Apr 2023 00:14:01 +0000 (01:14 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:23:07 +0000 (17:23 +0000)
Thanks to @folke for the workaround.
https://github.com/LazyVim/LazyVim/issues/566

nvim/init.lua
nvim/lua/config/options.lua

index bc3ed51678571035d676231083560b81a4c5989c..5f7a2829361bbc1510f9cff54b712136ee6e4477 100644 (file)
@@ -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")
index 1bc95c875dd511292ff456477091fa1d001417f8..60c4ad333a9190db1ae345a023aee63b5b377f13 100644 (file)
@@ -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