rek2
May 13, 2022, 6:21pm
1
Hello I have check the config with describe-class for vi-normal-mode
copy the example in init.lisp but when I start nynx I get:
<WARN> [20:14:38] Warning: Could not make buffer to open (nyxt:new): There is no class named NYXT-USER::VI-NORMAL-MODE.
if the classes documentation not updated for the main branch 3.x? if so what do I need to change?
The instruction I have on init.lisp
cat init.lisp
(define-configuration buffer
((default-modes (append '(vi-normal-mode) %slot-default%))))
Indeed, there’s no class named nyxt-user:vi-normal-mode
, there’s only nyxt/vi-mode:vi-normal-mode
In other words, you now have to provide package prefixes for modes. The change is not obvious and I hope that we can fix it to what was there before and even improve it
1 Like
rek2
May 14, 2022, 2:52pm
3
Thanks, I got it to work(I think so far) and will paste here for others:
(define-configuration buffer
((default-modes (append '(nyxt/vi-mode:vi-normal-mode) %slot-default%))))
(define-configuration prompt-buffer
((default-modes (append '(nyxt/vi-mode:vi-normal-mode) %slot-default%))))
Anything else I should add/change? @aartaka
Thanks
Happy Hacking
1 Like