summaryrefslogtreecommitdiff
path: root/fnl/config/autocmd.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-11 00:41:17 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-11 00:41:17 +0100
commitf318452070d42e51231f7880a5d0eaa93d978a1e (patch)
treec76f35889ebc7a4e52bbd06e07c8f33f9bf68f5d /fnl/config/autocmd.fnl
parent433952cf3efa8e2b5e23ff0e76a4afe6f95d44b5 (diff)
Rip aniseed, hail hotpot
Diffstat (limited to 'fnl/config/autocmd.fnl')
-rw-r--r--fnl/config/autocmd.fnl56
1 files changed, 0 insertions, 56 deletions
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 <silent> <buffer> q :close<CR>"})
-
-(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 :<C-h> "<Cmd>wincmd h<CR>" {})
- (vim.keymap.set :t :<C-j> "<Cmd>wincmd j<CR>" {})
- (vim.keymap.set :t :<C-k> "<Cmd>wincmd k<CR>" {})
- (vim.keymap.set :t :<C-l> "<Cmd>wincmd l<CR>" {}))})