diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-29 00:43:50 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-29 00:43:50 +0200 |
commit | f048e7a0042c10885ee37301464febc8c8f63e96 (patch) | |
tree | ead501d5675c0e57b90c82a952aa3dcb9d7c487e /fnl | |
parent | 55fbc6552e97e7f41c180adade95c467963c2af2 (diff) |
Replace lambda with λ
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/plugins/cmp.fnl | 2 | ||||
-rw-r--r-- | fnl/plugins/conform.fnl | 2 | ||||
-rw-r--r-- | fnl/plugins/harpoon.fnl | 6 | ||||
-rw-r--r-- | fnl/plugins/nvim-lint.fnl | 2 | ||||
-rw-r--r-- | fnl/plugins/orgmode.fnl | 4 | ||||
-rw-r--r-- | fnl/plugins/persistence.fnl | 6 | ||||
-rw-r--r-- | fnl/plugins/rest.fnl | 2 | ||||
-rw-r--r-- | fnl/plugins/snippets.fnl | 6 | ||||
-rw-r--r-- | fnl/plugins/telescope.fnl | 4 | ||||
-rw-r--r-- | fnl/plugins/venn.fnl | 6 | ||||
-rw-r--r-- | fnl/settings/autocmds.fnl | 6 | ||||
-rw-r--r-- | fnl/settings/init.fnl | 2 |
12 files changed, 24 insertions, 24 deletions
diff --git a/fnl/plugins/cmp.fnl b/fnl/plugins/cmp.fnl index 6063462..28c330c 100644 --- a/fnl/plugins/cmp.fnl +++ b/fnl/plugins/cmp.fnl @@ -12,7 +12,7 @@ (let [cmp (require :cmp) lspkind (require :lspkind)] (lspkind.init) - (cmp.setup {:snippet {:expand (lambda [args] + (cmp.setup {:snippet {:expand (λ [args] (let [luasnip (require :luasnip)] (luasnip.lsp_expand args.body)))} :completion {:completopt "menu,menuone,noinsert"} diff --git a/fnl/plugins/conform.fnl b/fnl/plugins/conform.fnl index 3ad98aa..86e5e71 100644 --- a/fnl/plugins/conform.fnl +++ b/fnl/plugins/conform.fnl @@ -2,7 +2,7 @@ (λ init [] (vim.keymap.set [:n :v] :<leader>e - (lambda [] + (λ [] (let [conform (require :conform)] (conform.format {:lsp_fallback true :async true}))) {:desc :Format})) diff --git a/fnl/plugins/harpoon.fnl b/fnl/plugins/harpoon.fnl index 723a52b..62ebf17 100644 --- a/fnl/plugins/harpoon.fnl +++ b/fnl/plugins/harpoon.fnl @@ -3,17 +3,17 @@ (local opts {:ui_max_width 64 :title " ⇁ "}) (local user-cmds [[:HarpoonAdd - (lambda [] + (λ [] (let [harpoon (require :harpoon)] (: (harpoon:list) :add))) {:nargs 0}] [:HarpoonUI - (lambda [] + (λ [] (let [harpoon (require :harpoon)] (harpoon.ui:toggle_quick_menu (harpoon:list) opts))) {:nargs 0}]]) -(lambda select [nr] +(λ select [nr] (let [harpoon (require :harpoon)] (: (harpoon:list) :select nr))) diff --git a/fnl/plugins/nvim-lint.fnl b/fnl/plugins/nvim-lint.fnl index caa8d00..57cb464 100644 --- a/fnl/plugins/nvim-lint.fnl +++ b/fnl/plugins/nvim-lint.fnl @@ -1,6 +1,6 @@ ;; Linting -(lambda callback [] +(λ callback [] (let [lint (require :lint)] (lint.try_lint))) diff --git a/fnl/plugins/orgmode.fnl b/fnl/plugins/orgmode.fnl index 5415be2..cb94462 100644 --- a/fnl/plugins/orgmode.fnl +++ b/fnl/plugins/orgmode.fnl @@ -16,12 +16,12 @@ :desc "Search headings"}]) (local user-cmds [[:OrgAgendaPrompt - (lambda [] + (λ [] (let [orgmode (require :orgmode)] (orgmode.action :agenda.prompt))) {:nargs 0}] [:OrgCapturePrompt - (lambda [] + (λ [] (let [orgmode (require :orgmode)] (orgmode.action :capture.prompt))) {:nargs 0}]]) diff --git a/fnl/plugins/persistence.fnl b/fnl/plugins/persistence.fnl index 6f5867c..e84ec58 100644 --- a/fnl/plugins/persistence.fnl +++ b/fnl/plugins/persistence.fnl @@ -9,17 +9,17 @@ :desc "Ignore current session"}]) (local user-cmds [[:RestoreSession - (lambda [] + (λ [] (let [persistence (require :persistence)] (persistence.load))) {:nargs 0}] [:RestoreLastSession - (lambda [] + (λ [] (let [persistence (require :persistence)] (persistence.load {:last true}))) {:nargs 0}] [:IgnoreSession - (lambda [] + (λ [] (let [persistence (require :persistence)] (persistence.stop))) {:nargs 0}]]) diff --git a/fnl/plugins/rest.fnl b/fnl/plugins/rest.fnl index dd6c2c6..7f02818 100644 --- a/fnl/plugins/rest.fnl +++ b/fnl/plugins/rest.fnl @@ -14,6 +14,6 @@ :branch :fix/getregtype :ft :http :dependencies [{1 :vhyrro/luarocks.nvim :priority 1000 :config true}] - :config (lambda [] + :config (λ [] (let [rest-nvim (require :rest-nvim)] (rest-nvim.setup {: keybinds})))} diff --git a/fnl/plugins/snippets.fnl b/fnl/plugins/snippets.fnl index 91865d6..569af44 100644 --- a/fnl/plugins/snippets.fnl +++ b/fnl/plugins/snippets.fnl @@ -16,16 +16,16 @@ (ls.config.set_config {:history false :updateevents "TextChanged,TextChangedI"}) (vim.keymap.set [:i :s] :<c-u> - (lambda [] + (λ [] (when (ls.expand_or_jumpable) (ls.expand_or_jump))) {:silent true}) (vim.keymap.set [:i :s] :<c-l> - (lambda [] + (λ [] (when (ls.jumpable -1) (ls.jump -1)) {:silent true})) (vim.keymap.set [:i] :<c-j> - (lambda [] + (λ [] (when (ls.choice_active) (ls.change_choice 1))) {:silent true}))) diff --git a/fnl/plugins/telescope.fnl b/fnl/plugins/telescope.fnl index 7b8f69b..6829e3a 100644 --- a/fnl/plugins/telescope.fnl +++ b/fnl/plugins/telescope.fnl @@ -22,7 +22,7 @@ :silent_chdir true :ignore_lsp {} :datapath (vim.fn.stdpath :data)} - :config (lambda [_ opts] + :config (λ [_ opts] (let [project (require :project_nvim)] (project.setup opts)))} :nvim-lua/plenary.nvim @@ -49,7 +49,7 @@ ((. telescope builtin) ((. themes theme) opts)))) (local user-cmds [[:FindFiles - (lambda [] + (λ [] (telescope-builtin :find_files {:theme :get_dropdown :previewer false})) {:nargs 0}]]) diff --git a/fnl/plugins/venn.fnl b/fnl/plugins/venn.fnl index 929e94d..7cb7d54 100644 --- a/fnl/plugins/venn.fnl +++ b/fnl/plugins/venn.fnl @@ -1,6 +1,6 @@ ;; Draw ASCII diagrams in Neovim -(lambda enable [win] +(λ enable [win] (tset (. vim.w win) :venn_enabled true) (set vim.wo.virtualedit :all) (vim.api.nvim_buf_set_keymap 0 :n :J "<c-v>j:VBox<cr>" {:noremap true}) @@ -9,7 +9,7 @@ (vim.api.nvim_buf_set_keymap 0 :n :H "<c-v>h:VBox<cr>" {:noremap true}) (vim.api.nvim_buf_set_keymap 0 :v :f ":VBox<cr>" {:noremap true})) -(lambda disable [win] +(λ disable [win] (set vim.wo.virtualedit "") (vim.api.nvim_buf_del_keymap 0 :n :J) (vim.api.nvim_buf_del_keymap 0 :n :K) @@ -18,7 +18,7 @@ (vim.api.nvim_buf_del_keymap 0 :v :f) (tset (. vim.w win) :venn_enabled nil)) -(lambda toggle [] +(λ toggle [] (let [win (vim.api.nvim_get_current_win)] (let [enabled (vim.inspect (. (. vim.w win) :venn_enabled))] (if (= enabled :nil) diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl index 3b9cecb..a87976a 100644 --- a/fnl/settings/autocmds.fnl +++ b/fnl/settings/autocmds.fnl @@ -4,7 +4,7 @@ {:pattern [:qf :help :man :lspinfo] :command "nnoremap <silent> <buffer> q :close<CR>"}] [:TextYankPost - {:callback (lambda [] + {:callback (λ [] (vim.highlight.on_yank {:higroup :Visual :timeout 200}))}] [:BufWinEnter {:command "setlocal formatoptions-=cro"}] @@ -15,11 +15,11 @@ [[:FocusGained :BufEnter :CursorHold :CursorHoldI] {:command :checktime}] [[:InsertLeave :WinEnter] - {:callback (lambda [] + {:callback (λ [] (let [cursorline (require :settings.cursorline)] cursorline.show))}] [[:InsertEnter :WinLeave] - {:callback (lambda [] + {:callback (λ [] (let [cursorline (require :settings.cursorline)] cursorline.hide))}]]) diff --git a/fnl/settings/init.fnl b/fnl/settings/init.fnl index dd392a8..6fcc9c7 100644 --- a/fnl/settings/init.fnl +++ b/fnl/settings/init.fnl @@ -6,6 +6,6 @@ {:group (vim.api.nvim_create_augroup :Lazy {:clear true}) :pattern :VeryLazy - :callback (lambda [] + :callback (λ [] (require :settings.autocmds) (require :settings.keymaps))}) |