dotfyle icon indicating copy to clipboard operation
dotfyle copied to clipboard

default backslash (\) leader key not detected even when explicitly set in config

Open ddl004 opened this issue 2 weeks ago • 0 comments
trafficstars

Dotfyle reports leaderkey: unknown for my config even though I explicitly set a backslash leader at the top of my init.lua.

vim.g.mapleader = "\\"

It looks like the findLeaderKey() function in src/lib/server/nvim-sync/config/NeovimConfigSyncer.ts has a small escaping bug in the switch statement.

Proposed fix:

- case '"\\"':
- case "'\\'":
+ case '"\\\\"':
+ case "'\\\\'":
    return '\\';

These string literals only contain a single backslash, but the raw text from a Lua file with vim.g.mapleader = "\\" should be escaped as \\\\.

ddl004 avatar Oct 30 '25 15:10 ddl004