More performance

This commit is contained in:
Price Hiller 2022-01-15 08:21:42 -06:00
parent 31cecc82e1
commit 1c614b848f
5 changed files with 39 additions and 8 deletions

View File

@ -0,0 +1,25 @@
local M = {}
M.setup = function()
local disabled_built_ins = {
"gzip",
"zip",
"zipPlugin",
"tar",
"tarPlugin",
"getscript",
"getscriptPlugin",
"vimball",
"vimballPlugin",
"2html_plugin",
"logipat",
"rrhelper",
"spellfile_plugin",
"matchit",
}
for _, plugin in pairs(disabled_built_ins) do
vim.g["loaded_" .. plugin] = 1
end
end
return M

View File

@ -1,3 +1,4 @@
require("core.disabled").setup()
require("core.options").setup()
require("core.mappings").setup()

View File

@ -66,6 +66,9 @@ M.setup = function()
-- Concealment for nicer rendering
opt.conceallevel = 2
opt.concealcursor = "ic"
-- Lazy Redraw to Speed Up Macros
opt.lazyredraw = true
end
return M

View File

@ -1,2 +1,2 @@
require("plugins.plugins")
require('packer_compiled')
require("packer_compiled")

View File

@ -19,7 +19,7 @@ return require("packer").startup({
-- keep at top of plugins
use({ "lewis6991/impatient.nvim" })
-- Packer Itself
-- Packer Itself
use({ "wbthomason/packer.nvim" })
-- Commonly used library
@ -50,9 +50,9 @@ return require("packer").startup({
use({
"nvim-lualine/lualine.nvim",
after = {
"nvim-bufferline.lua",
"tokyonight.nvim"
},
"nvim-bufferline.lua",
"tokyonight.nvim",
},
config = function()
require("plugins.configs.statusline")
end,
@ -71,6 +71,7 @@ return require("packer").startup({
use({
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
event = "BufRead",
config = function()
require("plugins.configs.treesitter")
end,
@ -133,6 +134,7 @@ return require("packer").startup({
use({
"simrat39/rust-tools.nvim",
after = "nvim-lspconfig",
ft = "rust",
config = function()
require("rust-tools").setup({})
end,
@ -154,12 +156,12 @@ return require("packer").startup({
use({
"hrsh7th/nvim-cmp",
even = "InsertEnter",
even = "InsertEnter",
requires = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-cmdline",
"onsails/lspkind-nvim",
"L3MON4D3/LuaSnip",
},
@ -373,6 +375,6 @@ return require("packer").startup({
return require("packer.util").float({ border = "double" })
end,
},
compile_path = vim.fn.stdpath('config') .. '/lua/packer_compiled.lua'
compile_path = vim.fn.stdpath("config") .. "/lua/packer_compiled.lua",
},
})