diff --git a/fnl/core.fnl b/fnl/core.fnl index 01f6795..2270f21 100644 --- a/fnl/core.fnl +++ b/fnl/core.fnl @@ -156,7 +156,7 @@ ;(vim.cmd "colorscheme monokai-pro-spectrum") (match (pcall #(vim.cmd "colorscheme PaperColor")) - (true _) (vim.notify "Successfully set colorscheme to PaperColor" vim.log.levels.INFO) + (true _) _ (false err) (vim.notify (.. "Failed to set papercolor theme: " err) vim.log.levels.WARN)) (set vim.o.background :dark) diff --git a/fnl/mods/ui/neoscroll.fnl b/fnl/mods/ui/neoscroll.fnl index 5909562..8ace603 100644 --- a/fnl/mods/ui/neoscroll.fnl +++ b/fnl/mods/ui/neoscroll.fnl @@ -2,7 +2,7 @@ (ns.setup {:mappings [: : : : :zt :zz :zb]}) -(config.set_mappings {: [:scroll [:-vim.wo.scroll :true :250]] - : [:scroll [:vim.wo.scroll :true :250]] - : [:scroll [:-0.10 :false :100]] - : [:scroll [:0.10 :false :100]]}) +(map [:n :v :x] : (bindf ns.ctrl_u {:move_cursor true :duration 250})) +(map [:n :v :x] : (bindf ns.ctrl_d {:move_cursor true :duration 250})) +(map [:n :v :x] : (bindf ns.scroll (- 0.1) {:move_cursor true :duration 100})) +(map [:n :v :x] : (bindf ns.scroll 0.1 {:move_cursor true :duration 100}))