enable git by default for nvimtree

This commit is contained in:
siduck 2024-03-15 06:37:04 +05:30
parent 80c2e01c75
commit b94c57954f
3 changed files with 7 additions and 10 deletions

View File

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

View File

@ -2,7 +2,7 @@ local M = {}
local map = vim.keymap.set
local conf = require("nvconfig").ui.lsp
-- export on_attach & capabilities for custom lspconfigs
-- export on_attach & capabilities
M.on_attach = function(client, bufnr)
local function opts(desc)
return { buffer = bufnr, desc = desc }

View File

@ -1,7 +1,6 @@
local options = {
filters = {
dotfiles = false,
exclude = { vim.fn.stdpath "config" .. "/lua/custom" },
},
disable_netrw = true,
hijack_netrw = true,
@ -19,7 +18,7 @@ local options = {
preserve_window_proportions = true,
},
git = {
enable = false,
enable = true,
ignore = true,
},
filesystem_watchers = {
@ -32,7 +31,7 @@ local options = {
},
renderer = {
root_folder_label = false,
highlight_git = false,
highlight_git = true,
highlight_opened_files = "none",
indent_markers = {
@ -44,7 +43,7 @@ local options = {
file = true,
folder = true,
folder_arrow = true,
git = false,
git = true,
},
glyphs = {