* performance: avoid reloading config (#2360) * performance: avoid reloading config * Rm outdated info in readme --------- Co-authored-by: Sidhanth Rathod <siduck@tutanota.com> * update nvchad load_config result path * update branch names --------- Co-authored-by: georgejean <jeangeorge385@yahoo.fr>
This commit is contained in:
parent
ed18649e94
commit
5748536742
7 changed files with 12 additions and 14 deletions
|
|
@ -2,7 +2,7 @@ local cmp = require "cmp"
|
|||
|
||||
dofile(vim.g.base46_cache .. "cmp")
|
||||
|
||||
local cmp_ui = require("core.utils").load_config().ui.cmp
|
||||
local cmp_ui = require("nvconfig").ui.cmp
|
||||
local cmp_style = cmp_ui.style
|
||||
|
||||
local field_arrangement = {
|
||||
|
|
|
|||
|
|
@ -3,14 +3,13 @@ local M = {}
|
|||
-- export on_attach & capabilities for custom lspconfigs
|
||||
M.on_attach = function(client, bufnr)
|
||||
local utils = require "core.utils"
|
||||
local conf = utils.load_config().ui.lsp
|
||||
local conf = require "nvconfig"
|
||||
|
||||
-- semanticTokens
|
||||
if not conf.semantic_tokens and client.supports_method "textDocument/semanticTokens" then
|
||||
client.server_capabilities.semanticTokensProvider = nil
|
||||
end
|
||||
|
||||
-- signature
|
||||
if conf.signature and client.server_capabilities.signatureHelpProvider then
|
||||
require("nvchad.signature").setup(client, bufnr)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ local default_plugins = {
|
|||
|
||||
{
|
||||
"NvChad/base46",
|
||||
branch = "v3.0",
|
||||
branch = "test",
|
||||
build = function()
|
||||
require("base46").load_all_highlights()
|
||||
end,
|
||||
|
|
@ -14,7 +14,7 @@ local default_plugins = {
|
|||
|
||||
{
|
||||
"NvChad/ui",
|
||||
branch = "v3.0",
|
||||
branch = "test",
|
||||
lazy = false,
|
||||
config = function()
|
||||
require "nvchad"
|
||||
|
|
@ -258,7 +258,7 @@ local default_plugins = {
|
|||
},
|
||||
}
|
||||
|
||||
local config = require("core.utils").load_config()
|
||||
local config = require "nvconfig"
|
||||
|
||||
if #config.plugins > 0 then
|
||||
table.insert(default_plugins, { import = config.plugins })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue