Lualine shows in the dashboard page #212
-
When I launch nvim without file, it opens the dashboard but also shows lualine, I do not want this behaviour, how can I disable it? require("lazy").setup({
spec = {
{
"folke/snacks.nvim",
lazy = false,
priority = 1000,
opts = function()
return {
dashboard = {
preset = {
header = Utils.ui.logo.my,
keys = {
{ icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
{ icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" },
{ icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
{
icon = " ",
key = "c",
desc = "Config",
action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})",
},
{ icon = " ", key = "s", desc = "Restore Session", section = "session" },
{ icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
{ icon = " ", key = "l", desc = "Lazy", action = ":Lazy" },
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
},
},
},
bigfile = { enabled = true },
notifier = { enabled = true },
quickfile = { enabled = true },
statuscolumn = { enabled = false },
terminal = {
win = {
keys = {
-- nav_h = { "<C-h>", term_nav("h"), desc = "Go to Left Window", expr = true, mode = "t" },
-- nav_j = { "<C-j>", term_nav("j"), desc = "Go to Lower Window", expr = true, mode = "t" },
-- nav_k = { "<C-k>", term_nav("k"), desc = "Go to Upper Window", expr = true, mode = "t" },
-- nav_l = { "<C-l>", term_nav("l"), desc = "Go to Right Window", expr = true, mode = "t" },
},
},
},
-- toggle = { map = LazyVim.safe_keymap_set },
words = { enabled = true },
}
end,
-- stylua: ignore
keys = {
{ "<leader>.", function() Snacks.scratch() end, desc = "Toggle Scratch Buffer" },
{ "<leader>S", function() Snacks.scratch.select() end, desc = "Select Scratch Buffer" },
{ "<leader>n", function() Snacks.notifier.show_history() end, desc = "Notification History" },
{ "<leader>un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" },
},
config = function(_, opts)
local notify = vim.notify
require("snacks").setup(opts)
if Utils.has("noice.nvim") then
vim.notify = notify
end
end,
},
{ import = "plugins" },
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Lualine has a setting called |
Beta Was this translation helpful? Give feedback.
-
Example: config = function()
require('lualine').setup({
options = {
disabled_filetypes = { 'snacks_dashboard' }
}
}
end (@dpetka2001 i was just about to say the same thing dude 😅) |
Beta Was this translation helpful? Give feedback.
-
Hey guys; is this still valid? I noticed that the [empty] status line is visible in Snacks dashboard (maybe it's been a while that it's there, and I just noticed recently). I'm using LazyVim, and it does disable lualine for I was wondering if it's working for you or you noticed it as well? |
Beta Was this translation helpful? Give feedback.
Lualine has a setting called
disabled_filetypes.statusline
. Just add theresnacks_dashboard
to not show it. Read the Lualine docs for more info.