Possible to Disable Dashboard Terminal Border? #2114
Answered
by
drowning-cat
itsonlyjames
asked this question in
Q&A
Replies: 1 comment 2 replies
-
vim.o.winborder = 'single'
vim.api.nvim_create_autocmd('User', {
pattern = { 'SnacksDashboardOpened', 'SnacksDashboardUpdatePost' },
callback = function()
for _, win in ipairs(vim.api.nvim_list_wins()) do
local conf = vim.api.nvim_win_get_config(win)
local buf = vim.api.nvim_win_get_buf(win)
local ft = vim.bo[buf].ft
-- NOTE: Why is it snacks_dashboard?
if ft == 'snacks_dashboard' and conf.relative ~= '' then
vim.api.nvim_win_set_config(win, { border = 'none' })
end
end
end,
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
itsonlyjames
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With
vim.o.winborder
set I get a border around the terminal in dashboard. Is it possible to selectively disable this?For me, this means disabling one border rather than enabling 10+ borders for all my other floats.
Dashboard section
Beta Was this translation helpful? Give feedback.
All reactions