From 3f539d94dfb004f56b0382971500408e49c4245b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 28 May 2024 22:00:09 +0200 Subject: Include BufNewFile event --- fnl/plugins/bqf.fnl | 2 +- fnl/plugins/harpoon.fnl | 2 +- fnl/plugins/leap.fnl | 6 +++--- fnl/plugins/lsp/lspconfig.fnl | 2 +- fnl/plugins/lualine.fnl | 2 +- fnl/plugins/spectre.fnl | 2 +- fnl/plugins/stay-in-place.fnl | 2 +- fnl/plugins/textobjs.fnl | 2 +- fnl/plugins/window-picker.fnl | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/fnl/plugins/bqf.fnl b/fnl/plugins/bqf.fnl index 387ae19..38afd09 100644 --- a/fnl/plugins/bqf.fnl +++ b/fnl/plugins/bqf.fnl @@ -24,4 +24,4 @@ :ptoggleauto :a :ptogglemode :P}}) -{1 :kevinhwang91/nvim-bqf :event :BufReadPost : opts} +{1 :kevinhwang91/nvim-bqf :event [:BufReadPost :BufNewFile] : opts} diff --git a/fnl/plugins/harpoon.fnl b/fnl/plugins/harpoon.fnl index 4b3cf84..c942183 100644 --- a/fnl/plugins/harpoon.fnl +++ b/fnl/plugins/harpoon.fnl @@ -40,4 +40,4 @@ (select 4)) :desc "Fourth Harpoon"}]) -{1 :ThePrimeagen/harpoon :branch :harpoon2 :event :BufReadPost : init : keys} +{1 :ThePrimeagen/harpoon :branch :harpoon2 :event [:BufReadPost :BufNewFile] : init : keys} diff --git a/fnl/plugins/leap.fnl b/fnl/plugins/leap.fnl index c5b700d..b17df72 100644 --- a/fnl/plugins/leap.fnl +++ b/fnl/plugins/leap.fnl @@ -1,13 +1,13 @@ ;; Leap through text. (local dependencies [{1 :ggandor/flit.nvim - :event :BufReadPost + :event [:BufReadPost :BufNewFile] :opts {:keys {:f :f :F :F :t :t :T :T} :labeled_modes :v :multiline true :opts {}}} {1 :ggandor/leap-spooky.nvim - :event :BufReadPost + :event [:BufReadPost :BufNewFile] :opts {;; Additional text objects, to be merged with the default ones. ;; E.g.: {'iq', 'aq'} :extra_text_objects nil @@ -34,4 +34,4 @@ (leap.setup {}) (leap.set_default_keymaps))) -{1 :ggandor/leap.nvim : dependencies :event :BufReadPost : config} +{1 :ggandor/leap.nvim : dependencies :event [:BufReadPost :BufNewFile] : config} diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl index b6949ec..a778eb3 100644 --- a/fnl/plugins/lsp/lspconfig.fnl +++ b/fnl/plugins/lsp/lspconfig.fnl @@ -17,7 +17,7 @@ (mason-lspconfig.setup))) {1 :neovim/nvim-lspconfig - :event :BufReadPost + :event [:BufReadPost :BufNewFile] :dependencies [:mason.nvim :williamboman/mason-lspconfig.nvim :b0o/schemastore.nvim diff --git a/fnl/plugins/lualine.fnl b/fnl/plugins/lualine.fnl index 57fbc45..0ec9217 100644 --- a/fnl/plugins/lualine.fnl +++ b/fnl/plugins/lualine.fnl @@ -86,4 +86,4 @@ (local dependencies [:nvim-tree/nvim-web-devicons :arkav/lualine-lsp-progress]) -{1 :nvim-lualine/lualine.nvim :event :BufReadPost : opts : dependencies} +{1 :nvim-lualine/lualine.nvim :event [:BufReadPost :BufNewFile] : opts : dependencies} diff --git a/fnl/plugins/spectre.fnl b/fnl/plugins/spectre.fnl index c7307f8..8c86a6d 100644 --- a/fnl/plugins/spectre.fnl +++ b/fnl/plugins/spectre.fnl @@ -83,4 +83,4 @@ {1 :re 2 :Replace :desc :Replace} {1 :ri 2 :ReplaceWord :desc "Replace Word"}]) -{1 :windwp/nvim-spectre :event :BufReadPost : init : keys : opts} +{1 :windwp/nvim-spectre :event [:BufReadPost :BufNewFile] : init : keys : opts} diff --git a/fnl/plugins/stay-in-place.fnl b/fnl/plugins/stay-in-place.fnl index b264a05..de6deb7 100644 --- a/fnl/plugins/stay-in-place.fnl +++ b/fnl/plugins/stay-in-place.fnl @@ -1,3 +1,3 @@ ;; Keep cursor at character when indenting. -{1 :gbprod/stay-in-place.nvim :event :BufReadPost :config true} +{1 :gbprod/stay-in-place.nvim :event [:BufReadPost :BufNewFile] :config true} diff --git a/fnl/plugins/textobjs.fnl b/fnl/plugins/textobjs.fnl index 8d68ac3..a36c0f8 100644 --- a/fnl/plugins/textobjs.fnl +++ b/fnl/plugins/textobjs.fnl @@ -1,5 +1,5 @@ ;; Various text objects. {1 :chrisgrieser/nvim-various-textobjs - :event :BufReadPost + :event [:BufReadPost :BufNewFile] :opts {:useDefaultKeymaps true}} diff --git a/fnl/plugins/window-picker.fnl b/fnl/plugins/window-picker.fnl index e396ce1..046e927 100644 --- a/fnl/plugins/window-picker.fnl +++ b/fnl/plugins/window-picker.fnl @@ -16,4 +16,4 @@ (vim.keymap.set :n : (fn [] (pick-window)) {}))) -{1 :s1n7ax/nvim-window-picker :event :BufReadPost :version :2.0.0 : config} +{1 :s1n7ax/nvim-window-picker :event [:BufReadPost :BufNewFile] :version :2.0.0 : config} -- cgit v1.2.3-70-g09d2