Compare commits

...

7 Commits

Author SHA1 Message Date
Sidhanth Rathod
7a42e0f2a3
Merge branch 'v3.0' into test 2023-10-24 06:44:32 +05:30
siduck
c8638eea4b update branch names 2023-10-24 06:38:43 +05:30
Sidhanth Rathod
cb27ae0ed1
update branch names for ui/base46 plugin 2023-10-17 15:25:13 +05:30
KorigamiK
35ee0bc81d Fix unreachable mappings for the lsp (#2443) 2023-10-17 07:56:43 +05:30
umlx5h
445d32c19f Add CTRL-w key to whichkey lazyloading (#2446) 2023-10-17 07:56:39 +05:30
Sidhanth Rathod
5748536742
performance: avoid reloading config table #2360 (#2444)
* 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>
2023-10-16 07:24:14 +05:30
siduck
ed18649e94 statusline: dont reload if theme is custom
this will prevent auto-reload of statusline , good for non custom statusline users
2023-10-09 17:13:11 +05:30
3 changed files with 8 additions and 6 deletions

View File

@ -87,8 +87,10 @@ autocmd("BufWritePost", {
local config = require "nvconfig" local config = require "nvconfig"
-- statusline -- statusline
require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme) if config.ui.statusline.theme ~= "custom" then
vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()" require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme)
vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()"
end
-- tabufline -- tabufline
if config.ui.tabufline.enabled then if config.ui.tabufline.enabled then

View File

@ -6,7 +6,7 @@ local default_plugins = {
{ {
"NvChad/base46", "NvChad/base46",
branch = "dev", branch = "v3.0",
build = function() build = function()
require("base46").load_all_highlights() require("base46").load_all_highlights()
end, end,
@ -14,7 +14,7 @@ local default_plugins = {
{ {
"NvChad/ui", "NvChad/ui",
branch = "dev", branch = "v3.0",
lazy = false, lazy = false,
config = function() config = function()
require "nvchad" require "nvchad"
@ -246,7 +246,7 @@ local default_plugins = {
-- Only load whichkey after all the gui -- Only load whichkey after all the gui
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
keys = { "<leader>", "<c-r>", '"', "'", "`", "c", "v", "g" }, keys = { "<leader>", "<c-r>", "<c-w>", '"', "'", "`", "c", "v", "g" },
init = function() init = function()
require("core.utils").load_mappings "whichkey" require("core.utils").load_mappings "whichkey"
end, end,