disable intro message, VeryLazy most plugins
This commit is contained in:
parent
8144c96f32
commit
78d671c682
12
init.lua
12
init.lua
|
@ -1,19 +1,23 @@
|
|||
-- enable read config from CWD
|
||||
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.shiftwidth = 0
|
||||
vim.o.softtabstop = -1
|
||||
vim.o.shiftround = true
|
||||
|
||||
vim.o.list = true
|
||||
vim.o.relativenumber = true
|
||||
vim.o.number = true
|
||||
|
||||
vim.o.expandtab = true
|
||||
vim.o.autoindent = 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", "zh", "<cmd>wincmd h<CR>", { silent = true })
|
||||
vim.keymap.set("n", "zj", "<cmd>wincmd j<CR>", { silent = true })
|
||||
|
|
|
@ -10,11 +10,11 @@ return {
|
|||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
main = "ibl",
|
||||
event = "VeryLazy",
|
||||
opts = { },
|
||||
},
|
||||
{
|
||||
"famiu/bufdelete.nvim",
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "zx", "<cmd>Bdelete<CR>", mode = "n" },
|
||||
},
|
||||
|
@ -23,12 +23,14 @@ return {
|
|||
"karb94/neoscroll.nvim",
|
||||
enabled = custom.full_feature,
|
||||
main = "neoscroll",
|
||||
event = "VeryLazy",
|
||||
opts = { },
|
||||
},
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
enabled = custom.full_feature,
|
||||
main = "bufferline",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
options = {
|
||||
numbers = "both",
|
||||
|
@ -56,6 +58,7 @@ return {
|
|||
"nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
main = "lualine",
|
||||
event = "VeryLazy",
|
||||
opts = { },
|
||||
init = function(_)
|
||||
vim.o.mousemoveevent = true
|
||||
|
@ -68,12 +71,12 @@ return {
|
|||
"nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
main = "nvim-tree",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
filters = {
|
||||
git_ignored = false,
|
||||
},
|
||||
},
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "<leader>t", "<cmd>NvimTreeFocus<CR>", mode = "n" },
|
||||
{ "<leader>f", "<cmd>NvimTreeFindFile<CR>", mode = "n" },
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
main = "gitsigns",
|
||||
event = "VeryLazy",
|
||||
enabled = custom.full_feature,
|
||||
opts = {
|
||||
on_attach = function(bufnr)
|
||||
|
|
|
@ -53,6 +53,7 @@ end
|
|||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
name = "nvim-treesitter",
|
||||
event = "VeryLazy",
|
||||
build = ":TSUpdate",
|
||||
opts = {
|
||||
indent = { enable = true },
|
||||
|
|
|
@ -48,7 +48,7 @@ return {
|
|||
"hrsh7th/cmp-cmdline",
|
||||
"L3MON4D3/LuaSnip",
|
||||
},
|
||||
lazy = false,
|
||||
event = "VeryLazy",
|
||||
config = function (_, opts)
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
|
||||
|
|
Loading…
Reference in a new issue