diff options
Diffstat (limited to 'fnl/settings')
-rw-r--r-- | fnl/settings/autocmds.fnl | 4 | ||||
-rw-r--r-- | fnl/settings/cursorline.fnl | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl index 5563f53..3b9cecb 100644 --- a/fnl/settings/autocmds.fnl +++ b/fnl/settings/autocmds.fnl @@ -23,5 +23,5 @@ (let [cursorline (require :settings.cursorline)] cursorline.hide))}]]) -(let [cmds (require :util.cmds)] - (cmds.create-auto-cmds auto-cmds)) +(let [{: create-auto-cmds} (require :util.cmds)] + (create-auto-cmds auto-cmds)) diff --git a/fnl/settings/cursorline.fnl b/fnl/settings/cursorline.fnl index cec76f2..7b7eae1 100644 --- a/fnl/settings/cursorline.fnl +++ b/fnl/settings/cursorline.fnl @@ -2,20 +2,20 @@ (local ignored [:neo-tree]) -(fn filetype [] +(λ filetype [] vim.bo.filetype) -(fn ignore [] +(λ ignore [] (vim.tbl_contains ignored (filetype))) -(fn show [] +(λ 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 [] +(λ hide [] (if (not= (ignore) true) (do (let [cl vim.wo.cursorline] |