fix(options): use vim.opt
and trigger Lazy ui reload when needed. Fixes #38
This commit is contained in:
@ -126,6 +126,10 @@ function M.load(name)
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
if vim.bo.filetype == "lazy" then
|
||||||
|
-- HACK: LazyVim may have overwritten options of the Lazy ui, so reset this here
|
||||||
|
vim.cmd([[do VimResized]])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
M.did_init = false
|
M.did_init = false
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = " "
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
-- set global only, to make sure we don't override the Lazy ui
|
local opt = vim.opt
|
||||||
local opt = vim.opt_global
|
|
||||||
|
|
||||||
opt.autowrite = true -- enable auto write
|
opt.autowrite = true -- enable auto write
|
||||||
opt.clipboard = "unnamedplus" -- sync with system clipboard
|
opt.clipboard = "unnamedplus" -- sync with system clipboard
|
||||||
|
Reference in New Issue
Block a user