From f318452070d42e51231f7880a5d0eaa93d978a1e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 11 Jan 2023 00:41:17 +0100 Subject: Rip aniseed, hail hotpot --- fnl/config/autocmd.fnl | 56 -------------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 fnl/config/autocmd.fnl (limited to 'fnl/config/autocmd.fnl') diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl deleted file mode 100644 index e58803b..0000000 --- a/fnl/config/autocmd.fnl +++ /dev/null @@ -1,56 +0,0 @@ -;; Autocommands for nvim. -(module config.autocmd {autoload {nvim aniseed.nvim - env aniseed.env - a aniseed.core - : lazy}}) - -(defn create-autocmd [event opts] (nvim.create_autocmd event opts)) - -(create-autocmd :FileType - {:pattern [:qf :help :man :lspinfo :spectre_panel] - :command "nnoremap q :close"}) - -(create-autocmd :TextYankPost - {:callback (lambda [] - (vim.highlight.on_yank {:higroup :Visual - :timeout 200}))}) - -(create-autocmd :FileType {:pattern :lir - :callback (fn [] - (tset vim.opt_local :number false) - (tset vim.opt_local :relativenumber - false))}) - -(create-autocmd :BufWinEnter {:command "setlocal formatoptions-=cro"}) - -(create-autocmd :FileType {:pattern :qf :command "set nobuflisted"}) - -(create-autocmd :FileType {:pattern [:gitcommit :markdown] - :command "setlocal wrap"}) - -(create-autocmd :FileType - {:pattern [:NeogitStatus - :NeogitCommitMessage - :NeogitNotification - :NeogitCommitView] - :command "setlocal spell!"}) - -(create-autocmd :TermOpen - {:pattern ["term://*toggleterm#*"] :command "setlocal spell!"}) - -(create-autocmd :VimResized {:command "tabdo wincmd ="}) - -(create-autocmd :BufWritePost - {:pattern :*.fnl - :callback (lambda [] - (env.init nvim.g.aniseed#env))}) - -(create-autocmd :FocusGained {:command :checktime}) - -(create-autocmd :TermOpen - {:pattern "term://*toggleterm#*" - :callback (fn [] - (vim.keymap.set :t : "wincmd h" {}) - (vim.keymap.set :t : "wincmd j" {}) - (vim.keymap.set :t : "wincmd k" {}) - (vim.keymap.set :t : "wincmd l" {}))}) -- cgit v1.2.3-70-g09d2