nvim(lazy): improving performance
This commit is contained in:
parent
ac7a0df836
commit
e0281b7ac0
@ -1 +1 @@
|
||||
require("base")
|
||||
require("core")
|
||||
@ -1,2 +0,0 @@
|
||||
require("base.mappings.mappings")
|
||||
require("base.mappings.run-scripts")
|
||||
@ -1,7 +1,7 @@
|
||||
for _, source in ipairs({
|
||||
"base.options",
|
||||
"base.mappings",
|
||||
"base.lazy",
|
||||
"core.options",
|
||||
"core.mappings",
|
||||
"core.lazy",
|
||||
})
|
||||
do
|
||||
local status_ok, fault = pcall(require, source)
|
||||
@ -18,5 +18,14 @@ vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup(
|
||||
"plugins",
|
||||
{ lockfile = vim.fn.stdpath("data") .. "/lazy-lock.json" }
|
||||
{
|
||||
change_detection = { enabled = false },
|
||||
lockfile = vim.fn.stdpath("data") .. "/lazy-lock.json",
|
||||
ui = { border = "rounded" },
|
||||
performance = {
|
||||
cache = {
|
||||
enabled = true,
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
2
home/user/.config/nvim/lua/core/mappings/init.lua
Normal file
2
home/user/.config/nvim/lua/core/mappings/init.lua
Normal file
@ -0,0 +1,2 @@
|
||||
require("core.mappings.mappings")
|
||||
require("core.mappings.run-scripts")
|
||||
@ -1,5 +1,6 @@
|
||||
return {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
event = "BufReadPost",
|
||||
enabled = vim.fn.executable "git" == 1,
|
||||
config = function()
|
||||
require("gitsigns").setup({
|
||||
|
||||
@ -24,6 +24,7 @@ end
|
||||
|
||||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
|
||||
@ -15,7 +15,6 @@ return {
|
||||
},
|
||||
{
|
||||
"kylechui/nvim-surround",
|
||||
version = "*",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup()
|
||||
@ -29,6 +28,7 @@ return {
|
||||
},
|
||||
{
|
||||
'numToStr/Comment.nvim',
|
||||
keys = { { "gc" }, { "gc", mode = "v" } },
|
||||
config = function()
|
||||
require("Comment").setup()
|
||||
end
|
||||
@ -42,6 +42,7 @@ return {
|
||||
{
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
event = "BufReadPost",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {"python", "lua", "vim", "html", "rust", "markdown"},
|
||||
|
||||
@ -65,6 +65,7 @@ end
|
||||
return {
|
||||
{
|
||||
'L3MON4D3/LuaSnip',
|
||||
event = "InsertEnter",
|
||||
build = "make install_jsregexp",
|
||||
dependencies = {
|
||||
'hrsh7th/nvim-cmp',
|
||||
@ -95,6 +96,7 @@ return {
|
||||
},
|
||||
{
|
||||
'hrsh7th/nvim-cmp',
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
@ -108,5 +110,6 @@ return {
|
||||
},
|
||||
{
|
||||
'neovim/nvim-lspconfig',
|
||||
event = "InsertEnter",
|
||||
},
|
||||
}
|
||||
@ -1,10 +1,12 @@
|
||||
return {
|
||||
{
|
||||
'kana/vim-textobj-lastpat', -- text-object i/, operate under finding
|
||||
event = "InsertEnter",
|
||||
dependencies = { 'kana/vim-textobj-user' }
|
||||
},
|
||||
{
|
||||
'sgur/vim-textobj-parameter',
|
||||
event = "InsertEnter",
|
||||
dependencies = { 'kana/vim-textobj-user' }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user