Upgrade config

This commit is contained in:
Chris
2025-05-02 20:58:31 +01:00
parent 17e642dcd3
commit 6dfef7bd87
7 changed files with 124 additions and 38 deletions

View File

@@ -59,7 +59,7 @@ vim.api.nvim_create_autocmd({ 'User' }, {
group = fidget_group,
callback = function(event)
local FidgetHelper = require 'utils.fidget_helper'
local handle = FidgetHelper:pop_progress_handle(event.data.id)
local handle = FidgetHelper:pop_progress_handle(event.data.id)
if handle then
FidgetHelper:report_exit_status(handle, event)
handle:finish()
@@ -67,22 +67,22 @@ vim.api.nvim_create_autocmd({ 'User' }, {
end,
})
vim.api.nvim_create_autocmd('BufEnter', {
callback = function(event)
local windows = vim.api.nvim_list_wins()
for _, window in ipairs(windows) do
local bufnr = vim.api.nvim_win_get_buf(window)
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
vim.cmd 'qa'
end,
})
-- vim.api.nvim_create_autocmd('BufEnter', {
-- callback = function(event)
-- local windows = vim.api.nvim_list_wins()
--
-- for _, window in ipairs(windows) do
-- local bufnr = vim.api.nvim_win_get_buf(window)
-- 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
-- vim.cmd 'qa'
-- end,
-- })
local modes_group = vim.api.nvim_create_augroup('modes', { clear = true })
vim.api.nvim_create_autocmd('FocusLost', {