Adding some snippets and keymaps

This commit is contained in:
Chris
2025-04-29 17:22:28 +01:00
parent 767d2595cd
commit 17e642dcd3
6 changed files with 67 additions and 13 deletions

View File

@@ -73,7 +73,10 @@ vim.api.nvim_create_autocmd('BufEnter', {
for _, window in ipairs(windows) do
local bufnr = vim.api.nvim_win_get_buf(window)
if vim.api.nvim_get_option_value('buflisted', { buf = bufnr }) or vim.api.nvim_get_option_value('filetype', { buf = bufnr }) == 'oil' then
local ft = vim.api.nvim_get_option_value('filetype', { buf = bufnr })
if vim.api.nvim_get_option_value('buflisted', { buf = bufnr })
or ft == 'oil'
or ft == 'snacks_dashboard' then
return
end
end