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"
-- statusline
require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme)
vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()"
if config.ui.statusline.theme ~= "custom" then
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
if config.ui.tabufline.enabled then

View File

@ -4,7 +4,7 @@ local M = {}
M.on_attach = function(client, bufnr)
local utils = require "core.utils"
local conf = require("nvconfig").ui.lsp
-- semanticTokens
if not conf.semantic_tokens and client.supports_method "textDocument/semanticTokens" then
client.server_capabilities.semanticTokensProvider = nil

View File

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