diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index 6bc9cee7..26a1a223 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -3,14 +3,14 @@ -- gitsigns.lua - -- -- Created by liubang on 2022/12/30 22:21 --- Last Modified: 2022/12/30 22:21 +-- Last Modified: 2023/02/09 00:43 -- --===================================================================== -- stylua: ignore start return { "lewis6991/gitsigns.nvim", - event = "BufReadPre", + event = {"BufReadPre", "BufNewFile"}, cmd = "Gitsigns", opts = { signs = { diff --git a/lua/plugins/lsp/init.lua b/lua/plugins/lsp/init.lua index 4be11868..4bf3e967 100644 --- a/lua/plugins/lsp/init.lua +++ b/lua/plugins/lsp/init.lua @@ -3,7 +3,7 @@ -- init.lua - -- -- Created by liubang on 2021/02/06 00:10 --- Last Modified: 2023/01/25 01:49 +-- Last Modified: 2023/02/09 00:43 -- -- ===================================================================== @@ -16,7 +16,7 @@ return { }, { "neovim/nvim-lspconfig", - event = "BufReadPre", + event = { "BufReadPre", "BufNewFile" }, dependencies = { "mason.nvim", "mason-lspconfig.nvim", diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 0247e8e2..d995becd 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -3,17 +3,16 @@ -- treesitter.lua - -- -- Created by liubang on 2022/12/30 20:50 --- Last Modified: 2022/12/30 20:50 +-- Last Modified: 2023/02/09 00:43 -- --===================================================================== return { "JoosepAlviste/nvim-ts-context-commentstring", - -- { "nvim-treesitter/playground", cmd = "TSPlaygroundToggle" }, { "nvim-treesitter/nvim-treesitter", build = ":TSUpdateSync", - event = "BufReadPost", + event = { "BufReadPost", "BufNewFile" }, keys = { { "v", desc = "Increment selection", mode = "n" }, { "V", desc = "Schrink selection", mode = "x" },