feat(nvim): remove codewindow

This commit is contained in:
matt1432 2025-01-14 00:10:17 -05:00
parent c8485430b9
commit 00ded9b3a7

View file

@ -116,35 +116,6 @@ in {
type = "lua"; type = "lua";
config = fileContents ./config/neotree.lua; config = fileContents ./config/neotree.lua;
} }
{
plugin = pkgs.vimPlugins.codewindow-nvim;
type = "lua";
config =
# lua
''
--
local codewindow = require('codewindow');
codewindow.setup({
auto_enable = false,
minimap_width = 8,
relative = 'editor',
window_border = 'none',
exclude_filetypes = { 'help' },
});
vim.api.nvim_create_autocmd({ 'VimEnter', 'VimResized' }, {
pattern = '*',
callback = function()
if vim.api.nvim_win_get_width(0) < 88 then
codewindow.close_minimap();
else
codewindow.open_minimap();
end
end,
});
'';
}
{ {
plugin = pkgs.vimPlugins.transparent-nvim; plugin = pkgs.vimPlugins.transparent-nvim;
type = "lua"; type = "lua";