fix(snacks): allow overriding statuscolumn through options.lua

This commit is contained in:
Folke Lemaitre 2024-11-11 09:37:47 +01:00
parent 86904d2fb1
commit 17a1b846f0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 0 deletions

View file

@ -85,6 +85,7 @@ opt.spelllang = { "en" }
opt.splitbelow = true -- Put new windows below current opt.splitbelow = true -- Put new windows below current
opt.splitkeep = "screen" opt.splitkeep = "screen"
opt.splitright = true -- Put new windows right of current opt.splitright = true -- Put new windows right of current
opt.statuscolumn = [[%!v:lua.require'snacks.statuscolumn'.get()]]
opt.tabstop = 2 -- Number of spaces tabs count for opt.tabstop = 2 -- Number of spaces tabs count for
opt.termguicolors = true -- True color support opt.termguicolors = true -- True color support
opt.timeoutlen = vim.g.vscode and 1000 or 300 -- Lower than default (1000) to quickly trigger which-key opt.timeoutlen = vim.g.vscode and 1000 or 300 -- Lower than default (1000) to quickly trigger which-key

View file

@ -31,6 +31,7 @@ return {
---@type snacks.Config ---@type snacks.Config
return { return {
toggle = { map = LazyVim.safe_keymap_set }, toggle = { map = LazyVim.safe_keymap_set },
statuscolumn = { enabled = false }, -- we set this in options.lua
terminal = { terminal = {
win = { win = {
keys = { keys = {