fix(nvchad)
This commit is contained in:
parent
680f77e31c
commit
bcdd436adc
3 changed files with 47 additions and 56 deletions
|
@ -1,51 +1,28 @@
|
||||||
-- IMPORTANT NOTE : This is the user config, can be edited. Will be preserved if updated with internal updater
|
|
||||||
-- This file is for NvChad options & tools, custom settings are split between here and 'lua/custom/init.lua'
|
|
||||||
|
|
||||||
|
-- ChadRC.lua
|
||||||
local M = {}
|
local M = {}
|
||||||
local userPlugins = require "custom.plugins"
|
|
||||||
|
|
||||||
M.options = {
|
-- M.options = {
|
||||||
-- relativenumber = true,
|
-- relativenumber = true,
|
||||||
smarttab = true
|
-- smarttab = true
|
||||||
}
|
-- }
|
||||||
|
|
||||||
M.ui = {
|
M.ui = {
|
||||||
theme = "tokyonight"
|
theme = "tokyonight"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- NvChad included plugin options & overrides
|
M.plugins = require "custom.plugins"
|
||||||
M.plugins = {
|
|
||||||
options = {
|
-- M.mappings = {
|
||||||
statusline = {
|
-- -- custom = {}, -- custom user mappings
|
||||||
separator_style = "slant",
|
--
|
||||||
}
|
-- custom = {
|
||||||
-- lspconfig = {
|
-- cheatsheet = "<leader>ch",
|
||||||
-- path of file containing setups of different lsps (ex : "custom.plugins.lspconfig"), read the docs for more info
|
-- line_number_toggle = "<leader>n", -- toggle line number
|
||||||
-- setup_lspconf = "",
|
-- update_nvchad = "<leader>uu",
|
||||||
|
-- new_tab = "<leader>t",
|
||||||
-- },
|
-- },
|
||||||
},
|
-- }
|
||||||
-- To change the Packer `config` of a plugin that comes with NvChad,
|
|
||||||
-- add a table entry below matching the plugin github name
|
|
||||||
-- '-' -> '_', remove any '.lua', '.nvim' extensions
|
|
||||||
-- this string will be called in a `require`
|
|
||||||
-- use "(custom.configs).my_func()" to call a function
|
|
||||||
-- use "custom.blankline" to call a file
|
|
||||||
--default_plugin_config_replace = {},
|
|
||||||
override = {},
|
|
||||||
remove = {},
|
|
||||||
|
|
||||||
user = userPlugins,
|
|
||||||
}
|
|
||||||
|
|
||||||
M.mappings = {
|
|
||||||
-- custom = {}, -- custom user mappings
|
|
||||||
|
|
||||||
custom = {
|
|
||||||
cheatsheet = "<leader>ch",
|
|
||||||
line_number_toggle = "<leader>n", -- toggle line number
|
|
||||||
update_nvchad = "<leader>uu",
|
|
||||||
new_tab = "<leader>t",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
||||||
|
|
|
@ -12,4 +12,3 @@ vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]]
|
||||||
|
|
||||||
-- File extension specific tabbing
|
-- File extension specific tabbing
|
||||||
vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]]
|
vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]]
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
--
|
--
|
||||||
return {
|
return {
|
||||||
['cappyzawa/trim.nvim'] = {
|
['cappyzawa/trim.nvim'] = {
|
||||||
|
override_options = {
|
||||||
config = function()
|
config = function()
|
||||||
require('trim').setup({
|
require('trim').setup({
|
||||||
-- if you want to ignore markdown file.
|
-- if you want to ignore markdown file.
|
||||||
|
@ -18,4 +19,18 @@ return {
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
-- disable dashboard
|
||||||
|
['goolord/alpha-nvim'] = { disable = true },
|
||||||
|
|
||||||
|
-- UI
|
||||||
|
["NvChad/ui"] = {
|
||||||
|
override_options = {
|
||||||
|
statusline = {
|
||||||
|
separator_style = "arrow", -- default/round/block/arrow
|
||||||
|
overriden_modules = nil,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue