From 443b13723967ef36312ac4fc573f0f5224f8b67a Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Sat, 20 Jun 2026 10:20:39 +0200 Subject: [PATCH] fix(fyler-nvim): update config for fyler v2 rewrite fyler.nvim's 2026-06-14 rewrite (1bb18a0 "refactor!: Rewrite the whole plugin") replaced the nested `views.finder.*` config with a flat schema and renamed the window kind preset `float` to `floating`. The current spec calls `toggle { kind = "float" }`, which no longer resolves to a preset, so opening fyler errors with: after the second argument: expected table, got nil (`config.get_config` -> `vim.tbl_deep_extend('force', M.DATA, M.DATA.kind_presets["float"] --[[nil]], ...)`). Migrate to the v2 schema: - `views.finder.default_explorer` -> `use_as_default_explorer` - `views.finder.win.kind` -> top-level `kind` - `views.finder.win.border` -> `kind_presets.floating.border` - keymap `kind = "float"` -> `kind = "floating"` `views.finder.indentscope.markers` has no v2 equivalent (the rewrite replaced the custom indent marker with a boolean `ui.indent_guides`), so the custom glyph is intentionally dropped in favour of `indent_guides`. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../file-explorer/fyler-nvim/init.lua | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/lua/astrocommunity/file-explorer/fyler-nvim/init.lua b/lua/astrocommunity/file-explorer/fyler-nvim/init.lua index b013a3f43..2d9f78a36 100644 --- a/lua/astrocommunity/file-explorer/fyler-nvim/init.lua +++ b/lua/astrocommunity/file-explorer/fyler-nvim/init.lua @@ -9,7 +9,7 @@ return { opts = function(_, opts) local maps = opts.mappings or {} maps.n["e"] = { - function() require("fyler").toggle { kind = "float" } end, + function() require("fyler").toggle { kind = "floating" } end, desc = "Open with fyler (floating)", } end, @@ -17,18 +17,12 @@ return { }, opts = { - views = { - finder = { - default_explorer = true, - indentscope = { - markers = "┊", - }, - win = { - border = "rounded", - kind = "replace", - }, - }, + use_as_default_explorer = true, + kind = "replace", + kind_presets = { + floating = { border = "rounded" }, }, + ui = { indent_guides = true }, }, }, }