avoid loading cached highlights in plugin opts file
This commit is contained in:
parent
7b3aefee53
commit
a2690a4b72
7 changed files with 20 additions and 20 deletions
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "mason")
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "nvimtree")
|
||||
|
||||
local options = {
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "telescope")
|
||||
|
||||
local options = {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "syntax")
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua" },
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "whichkey")
|
||||
|
||||
local options = {
|
||||
|
||||
icons = {
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ local default_plugins = {
|
|||
build = ":TSUpdate",
|
||||
opts = require "plugins.configs.treesitter",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "syntax")
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
|
@ -105,8 +106,11 @@ local default_plugins = {
|
|||
{
|
||||
"williamboman/mason.nvim",
|
||||
cmd = { "Mason", "MasonInstall", "MasonInstallAll", "MasonUninstall", "MasonUninstallAll", "MasonLog" },
|
||||
opts = require "plugins.configs.mason",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "mason")
|
||||
require("mason").setup(opts)
|
||||
|
||||
-- custom nvchad cmd to install all mason binaries listed
|
||||
vim.api.nvim_create_user_command("MasonInstallAll", function()
|
||||
vim.cmd("MasonInstall " .. table.concat(opts.ensure_installed, " "))
|
||||
|
|
@ -186,6 +190,7 @@ local default_plugins = {
|
|||
init = require("core.utils").load_mappings "nvimtree",
|
||||
opts = require "plugins.configs.nvimtree",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "nvimtree")
|
||||
require("nvim-tree").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
|
@ -200,6 +205,7 @@ local default_plugins = {
|
|||
end,
|
||||
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "telescope")
|
||||
local telescope = require "telescope"
|
||||
telescope.setup(opts)
|
||||
|
||||
|
|
@ -218,6 +224,7 @@ local default_plugins = {
|
|||
init = require("core.utils").load_mappings "whichkey",
|
||||
opts = require "plugins.configs.whichkey",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "whichkey")
|
||||
require("which-key").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue