The new plugin repo is here: https://github.com/b0o/nvim-tree-preview.lua
Preview NvimTree files in a floating window.
Outer | |
execve("/usr/bin/entr", ["entr", "bash", "./self-entr.sh", "--inner"], 0x7fff5e5a1088 /* 179 vars */) = 0 | |
brk(NULL) = 0x563684b3a000 | |
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc98182a70) = -1 EINVAL (Invalid argument) | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=322755, ...}, AT_EMPTY_PATH) = 0 | |
mmap(NULL, 322755, PROT_READ, MAP_PRIVATE, 3, 0) = 0x14884d01e000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 |
local n = require 'nui-components' | |
local signal = n.create_signal { | |
name = '', | |
description = '', | |
} | |
local function test_ui() | |
local renderer = n.create_renderer { | |
width = 60, |
Error executing Lua callback: ...nvim/nui-components.nvim/lua/nui-components/utils/fn.lua:18: bad argument #1 to 'ipairs' (table expected, got nil) | |
stack traceback: | |
[C]: in function 'ipairs' | |
...nvim/nui-components.nvim/lua/nui-components/utils/fn.lua:18: in function 'get_max_width' | |
...vim/nui-components.nvim/lua/nui-components/paragraph.lua:133: in function 'on_layout' | |
...ui-components.nvim/lua/nui-components/component/size.lua:208: in function 'get_size' | |
...ui-components.nvim/lua/nui-components/component/init.lua:358: in function 'render' | |
...ui-components.nvim/lua/nui-components/component/init.lua:346: in function 'func' | |
...nvim/nui-components.nvim/lua/nui-components/utils/fn.lua:19: in function 'ireduce' | |
...ui-components.nvim/lua/nui-components/component/init.lua:344: in function 'render' |
The new plugin repo is here: https://github.com/b0o/nvim-tree-preview.lua
Preview NvimTree files in a floating window.
-- Important: Put this in your config directory at lua/nvim-tree/renderer/decorator/bookmarks.lua | |
-- | |
-- HACK: Although this file is named bookmarks.lua, it is actually a decorator | |
-- for the quickfix list. Because nvim-tree does not provide a way to add a custom decorator, | |
-- we are overriding the built-in bookmarks decorator with our own quickfix list decorator. | |
-- If you don't want to override the bookmarks.lua decorator, you can override a different one. | |
local HL_POSITION = require('nvim-tree.enum').HL_POSITION | |
local ICON_PLACEMENT = require('nvim-tree.enum').ICON_PLACEMENT |
/** | |
Just messing around with different types of glitching effects. | |
*/ | |
// try commenting/uncommenting these to isolate/combine different glitch | |
// effects. | |
#define ANALOG | |
#define DIGITAL | |
// amount of seconds for which the glitch loop occurs |
// Loosely based on postprocessing shader by inigo quilez, License Creative | |
// Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. | |
vec2 curve(vec2 uv) { | |
uv = (uv - 0.5) * 2.0; | |
uv *= 1.05; // Reduced from 1.1 | |
uv.x *= 1.0 + pow((abs(uv.y) / 6.0), 2.0); // Reduced curve from 5.0 to 6.0 | |
uv.y *= 1.0 + pow((abs(uv.x) / 5.0), 2.0); // Reduced curve from 4.0 to 5.0 | |
uv = (uv / 2.0) + 0.5; | |
uv = uv * 0.95 + 0.025; // Less aggressive edge scaling |
#!/usr/bin/perl | |
# Author: Todd Larason <[email protected]> | |
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.1 1999/07/11 08:49:54 dawes Exp $ | |
print "256 color mode\n\n"; | |
# display back ground colors | |
for ($fgbg = 38; $fgbg <= 48; $fgbg +=10) { |