Skip to content

Commit

Permalink
update neoscroll
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemengo committed Dec 23, 2024
1 parent 8fc77a7 commit 24112b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fnl/core.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions fnl/mods/ui/neoscroll.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(ns.setup {:mappings [:<C-u> :<C-d> :<C-y> :<C-e> :zt :zz :zb]})

(config.set_mappings {:<C-u> [:scroll [:-vim.wo.scroll :true :250]]
:<C-d> [:scroll [:vim.wo.scroll :true :250]]
:<C-y> [:scroll [:-0.10 :false :100]]
:<C-e> [:scroll [:0.10 :false :100]]})
(map [:n :v :x] :<C-u> (bindf ns.ctrl_u {:move_cursor true :duration 250}))
(map [:n :v :x] :<C-d> (bindf ns.ctrl_d {:move_cursor true :duration 250}))
(map [:n :v :x] :<C-y> (bindf ns.scroll (- 0.1) {:move_cursor true :duration 100}))
(map [:n :v :x] :<C-e> (bindf ns.scroll 0.1 {:move_cursor true :duration 100}))

0 comments on commit 24112b1

Please sign in to comment.