2025-09-19 15:08:14 -04:00
-- Polish configuration: Final setup and overrides
-- This runs last in the setup process
2025-03-07 15:53:52 -05:00
2025-09-19 15:08:14 -04:00
-- Remove <leader>h mapping (conflicts with Telescope)
vim.api . nvim_del_keymap ( "n" , "<leader>h" )
2025-03-28 15:33:06 -04:00
2025-10-22 12:03:14 -04:00
-- Screen session integration: Handle suspend/resume gracefully
local screen_augroup = vim.api . nvim_create_augroup ( "ScreenIntegration" , { clear = true })
-- Before suspension (Screen detach), save all buffers
vim.api . nvim_create_autocmd ( "VimSuspend" , {
group = screen_augroup ,
callback = function ()
-- Save all modified buffers before suspension
vim.cmd "silent! wa"
-- Save session if in a Screen session
if vim.env . STY ~= nil and vim.env . STY ~= "" then
local session_name = vim.env . STY : match "[^%.]+%.(.+)"
vim.notify ( "Suspending from Screen session: " .. ( session_name or vim.env . STY ), vim.log . levels.INFO )
end
end ,
desc = "Save all buffers before Screen detach/suspension" ,
})
-- After resume from suspension (Screen reattach)
vim.api . nvim_create_autocmd ( "VimResume" , {
group = screen_augroup ,
callback = function ()
-- Check for external file changes after resuming
vim.cmd "checktime"
if vim.env . STY ~= nil and vim.env . STY ~= "" then
local session_name = vim.env . STY : match "[^%.]+%.(.+)"
vim.notify ( "Resumed in Screen session: " .. ( session_name or vim.env . STY ), vim.log . levels.INFO )
end
end ,
desc = "Check for file changes after Screen reattach/resume" ,
})
2025-03-28 15:33:06 -04:00
2025-10-10 09:46:48 -04:00
2025-10-10 15:18:26 -04:00
require ( "cyberdream" ). setup {
variant = "default" , -- use "light" for the light variant. Also accepts "auto" to set dark or light colors based on the current value of `vim.o.background`
transparent = true ,
italic_comments = true ,
hide_fillchars = true ,
borderless_pickers = true ,
terminal_colors = true ,
}