Skip to content

Commit

Permalink
ignore some messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassin01 committed Aug 17, 2024
1 parent 121d90d commit 724298a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fnl/core/opt/init.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,12 @@
; (vim.fn.mkdir target-path :p 0700))
; (tset vim.o :undodir target-path)
; (tset vim.o :undofile true)))

;; ignore some messages
(let [notify (. vim :notify)]
(tset
vim :notify
(lambda [msg ...]
(when (: msg :match "warning: multiple different client offset_encodings")
(lua :return))
(notify msg ...))))

0 comments on commit 724298a

Please sign in to comment.