From 7096adce11b93787170c09b79a6170d97b4a977c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 29 Jul 2024 00:03:58 +0200 Subject: Replace fn with λ and how cmds are imported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fnl/settings/cursorline.fnl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fnl/settings/cursorline.fnl') 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] -- cgit v1.2.3-70-g09d2