Skip to content

Commit

Permalink
fix: add BufRead to plugins for faster startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dgokcin committed Jan 15, 2024
1 parent 582c1a7 commit 19391d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions nvim/lua/plugins/comment.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
return {
'numToStr/Comment.nvim',
event = 'BufRead',
config = function()
require('Comment').setup()
end
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/plugins/nvim-surround.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
return {
'kylechui/nvim-surround',
version = '*',
event = 'BufRead',
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/plugins/stay-in-place.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
-- See the kickstart.nvim README for more information
return {
'gbprod/stay-in-place.nvim',
event = 'BufRead',
config = function()
local stayinplace = require("stay-in-place") -- Importing the module

Expand Down
1 change: 1 addition & 0 deletions nvim/lua/plugins/substitute.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
return {
"gbprod/substitute.nvim",
event = "BufRead",
keys = {
"s",
"ss",
Expand Down

0 comments on commit 19391d8

Please sign in to comment.