disable intro message, VeryLazy most plugins

This commit is contained in:
leafee98 2023-12-14 17:45:05 +08:00
parent 8144c96f32
commit 78d671c682
5 changed files with 16 additions and 7 deletions

View file

@ -1,19 +1,23 @@
-- enable read config from CWD -- enable read config from CWD
vim.o.exrc = true vim.o.exrc = true
-- Disable intro message on startup, or many other plugins will
-- close this message on load, which may cause a flash of intro message.
vim.opt.shortmess:append({ I = true })
vim.o.tabstop = 4 vim.o.tabstop = 4
vim.o.shiftwidth = 0 vim.o.shiftwidth = 0
vim.o.softtabstop = -1 vim.o.softtabstop = -1
vim.o.shiftround = true vim.o.shiftround = true
vim.o.list = true
vim.o.relativenumber = true
vim.o.number = true
vim.o.expandtab = true vim.o.expandtab = true
vim.o.autoindent = true vim.o.autoindent = true
vim.o.smartindent = true vim.o.smartindent = true
vim.o.list = true
vim.o.relativenumber = true
vim.o.number = true
vim.keymap.set("n", "\\q", "<cmd>wincmd q<CR>", { silent = true }) vim.keymap.set("n", "\\q", "<cmd>wincmd q<CR>", { silent = true })
vim.keymap.set("n", "zh", "<cmd>wincmd h<CR>", { silent = true }) vim.keymap.set("n", "zh", "<cmd>wincmd h<CR>", { silent = true })
vim.keymap.set("n", "zj", "<cmd>wincmd j<CR>", { silent = true }) vim.keymap.set("n", "zj", "<cmd>wincmd j<CR>", { silent = true })

View file

@ -10,11 +10,11 @@ return {
{ {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
main = "ibl", main = "ibl",
event = "VeryLazy",
opts = { }, opts = { },
}, },
{ {
"famiu/bufdelete.nvim", "famiu/bufdelete.nvim",
lazy = false,
keys = { keys = {
{ "zx", "<cmd>Bdelete<CR>", mode = "n" }, { "zx", "<cmd>Bdelete<CR>", mode = "n" },
}, },
@ -23,12 +23,14 @@ return {
"karb94/neoscroll.nvim", "karb94/neoscroll.nvim",
enabled = custom.full_feature, enabled = custom.full_feature,
main = "neoscroll", main = "neoscroll",
event = "VeryLazy",
opts = { }, opts = { },
}, },
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
enabled = custom.full_feature, enabled = custom.full_feature,
main = "bufferline", main = "bufferline",
event = "VeryLazy",
opts = { opts = {
options = { options = {
numbers = "both", numbers = "both",
@ -56,6 +58,7 @@ return {
"nvim-tree/nvim-web-devicons" "nvim-tree/nvim-web-devicons"
}, },
main = "lualine", main = "lualine",
event = "VeryLazy",
opts = { }, opts = { },
init = function(_) init = function(_)
vim.o.mousemoveevent = true vim.o.mousemoveevent = true
@ -68,12 +71,12 @@ return {
"nvim-tree/nvim-web-devicons" "nvim-tree/nvim-web-devicons"
}, },
main = "nvim-tree", main = "nvim-tree",
event = "VeryLazy",
opts = { opts = {
filters = { filters = {
git_ignored = false, git_ignored = false,
}, },
}, },
lazy = false,
keys = { keys = {
{ "<leader>t", "<cmd>NvimTreeFocus<CR>", mode = "n" }, { "<leader>t", "<cmd>NvimTreeFocus<CR>", mode = "n" },
{ "<leader>f", "<cmd>NvimTreeFindFile<CR>", mode = "n" }, { "<leader>f", "<cmd>NvimTreeFindFile<CR>", mode = "n" },

View file

@ -1,6 +1,7 @@
return { return {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
main = "gitsigns", main = "gitsigns",
event = "VeryLazy",
enabled = custom.full_feature, enabled = custom.full_feature,
opts = { opts = {
on_attach = function(bufnr) on_attach = function(bufnr)

View file

@ -53,6 +53,7 @@ end
return { return {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
name = "nvim-treesitter", name = "nvim-treesitter",
event = "VeryLazy",
build = ":TSUpdate", build = ":TSUpdate",
opts = { opts = {
indent = { enable = true }, indent = { enable = true },

View file

@ -48,7 +48,7 @@ return {
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
}, },
lazy = false, event = "VeryLazy",
config = function (_, opts) config = function (_, opts)
local capabilities = require("cmp_nvim_lsp").default_capabilities() local capabilities = require("cmp_nvim_lsp").default_capabilities()