From c41f25fa0d1c882d3dd484d10666b5341dec5c92 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 13 Jan 2023 01:49:50 +0100 Subject: Refactor --- fnl/settings/autocmds.fnl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'fnl/settings/autocmds.fnl') diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl index ca361b3..cd3a27e 100644 --- a/fnl/settings/autocmds.fnl +++ b/fnl/settings/autocmds.fnl @@ -1,8 +1,5 @@ ;; Autocommands for nvim. -(fn create-autocmd [event opts] - (vim.api.nvim_create_autocmd event opts)) - (local autocmds [[:FileType {:pattern [:qf :help :man :lspinfo :spectre_panel] @@ -38,4 +35,4 @@ (each [_ autocmd (ipairs autocmds)] (match autocmd - [event opts] (create-autocmd event opts))) + [event opts] (vim.api.nvim_create_autocmd event opts))) -- cgit v1.2.3-70-g09d2