summaryrefslogtreecommitdiff
path: root/fnl/util
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-06 00:00:28 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-06 00:00:28 +0100
commit487d7d06cc40f3e60a884693811f5fbb8a980040 (patch)
treee3b4bef7ccebf0db479c43f94e3817d27a9cc5dd /fnl/util
parentba5400946e9ee19dce851e91a36bb1670d265233 (diff)
Move utils to settings
Diffstat (limited to 'fnl/util')
-rw-r--r--fnl/util/cursorline.fnl27
1 files changed, 0 insertions, 27 deletions
diff --git a/fnl/util/cursorline.fnl b/fnl/util/cursorline.fnl
deleted file mode 100644
index cec76f2..0000000
--- a/fnl/util/cursorline.fnl
+++ /dev/null
@@ -1,27 +0,0 @@
-;; Shows (hides) the cursorline in the (un)focused window.
-
-(local ignored [:neo-tree])
-
-(fn filetype []
- vim.bo.filetype)
-
-(fn ignore []
- (vim.tbl_contains ignored (filetype)))
-
-(fn show []
- (let [(ok cl) (pcall vim.api.nvim_win_get_var 0 :auto-cursorline)]
- (if (and ok cl)
- (do
- (set vim.wo.cursorline true)
- (vim.api.nvim_win_del_var 0 :auto-cursorline)))))
-
-(fn hide []
- (if (not= (ignore) true)
- (do
- (let [cl vim.wo.cursorline]
- (if cl
- (do
- (vim.api.nvim_win_set_var 0 :auto-cursorline cl)
- (set vim.wo.cursorline false)))))))
-
-{: show : hide}