mirror of
https://github.com/NvChad/NvChad.git
synced 2025-07-21 00:00:10 -04:00
Compare commits
7 Commits
44959439fe
...
7a42e0f2a3
Author | SHA1 | Date | |
---|---|---|---|
|
7a42e0f2a3 | ||
|
c8638eea4b | ||
|
cb27ae0ed1 | ||
|
35ee0bc81d | ||
|
445d32c19f | ||
|
5748536742 | ||
|
ed18649e94 |
@ -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
|
||||||
|
@ -4,7 +4,7 @@ local M = {}
|
|||||||
M.on_attach = function(client, bufnr)
|
M.on_attach = function(client, bufnr)
|
||||||
local utils = require "core.utils"
|
local utils = require "core.utils"
|
||||||
local conf = require("nvconfig").ui.lsp
|
local conf = require("nvconfig").ui.lsp
|
||||||
|
|
||||||
-- semanticTokens
|
-- semanticTokens
|
||||||
if not conf.semantic_tokens and client.supports_method "textDocument/semanticTokens" then
|
if not conf.semantic_tokens and client.supports_method "textDocument/semanticTokens" then
|
||||||
client.server_capabilities.semanticTokensProvider = nil
|
client.server_capabilities.semanticTokensProvider = nil
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user