aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-06-26 21:03:15 +0200
committerpml68 <tutorialmester@gmail.com>2024-06-26 21:03:15 +0200
commit462947daa973ecfdb32ea86d0497579ce7d98084 (patch)
tree034deda49f49d28ffc05d43b52435e46a2e76869 /lua/pml68
parentfeat: only load guard.nvim for C, C++ and JSON (diff)
downloadnvim-462947daa973ecfdb32ea86d0497579ce7d98084.tar.gz
fix: plugins not loading when opening non-existent (new) file
Diffstat (limited to '')
-rw-r--r--lua/pml68/plugins.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua
index b833e05..462f5a2 100644
--- a/lua/pml68/plugins.lua
+++ b/lua/pml68/plugins.lua
@@ -2,7 +2,7 @@ local plugins = {
-- Visual surround
{
"NStefan002/visual-surround.nvim",
- event = "BufReadPost",
+ event = { "BufReadPost", "BufNewFile" },
config = true,
},
-- tmux integration
@@ -75,7 +75,7 @@ local plugins = {
--Color highlighting
{
"brenoprata10/nvim-highlight-colors",
- event = "BufReadPost",
+ event = { "BufReadPost", "BufNewFile" },
config = function()
require("nvim-highlight-colors").setup({
render = 'virtual',
@@ -87,7 +87,7 @@ local plugins = {
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
- event = "BufReadPost",
+ event = { "BufReadPost", "BufNewFile" },
config = function()
require("ibl").setup()
end
@@ -121,7 +121,7 @@ local plugins = {
--Git
{
"lewis6991/gitsigns.nvim",
- event = "BufReadPost",
+ event = { "BufReadPost", "BufNewFile" },
config = function()
require("gitsigns").setup({
signs = {
@@ -143,7 +143,7 @@ local plugins = {
--LSP
{
"neovim/nvim-lspconfig",
- event = "BufReadPost",
+ event = { "BufReadPost", "BufNewFile" },
config = function()
require("pml68.configs.lspconfig")
end
@@ -229,7 +229,7 @@ local plugins = {
--Misc
{
"andweeb/presence.nvim",
- event = "BufReadPost",
+ event = { "BufReadPost", "BufNewFile" },
opts = {
main_image = "file",
log_level = "debug",