neovim/debug: handle debug log path correctly

This commit is contained in:
NotAShelf 2024-04-23 14:55:11 +03:00
parent 894022228a
commit 2680be20a3
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -39,11 +39,11 @@ in {
config.vim = mkIf cfg.enable { config.vim = mkIf cfg.enable {
luaConfigRC.debug-mode = entryAfter ["basic"] '' luaConfigRC.debug-mode = entryAfter ["basic"] ''
-- Debug mode settings -- Debug mode settings
vim.o.verbose = ${toString cfg.level}, vim.o.verbose = ${toString cfg.level}
${optionalString (cfg.logFile != null) '' ${optionalString (cfg.logFile != null) ''
-- Set verbose log file -- Set verbose log file
vim.o.verbosefile = ${cfg.logFile}, vim.o.verbosefile = "${cfg.logFile}"
''} ''}
''; '';
}; };