Revert "feat: Move nvchad config to ulic-youthlic/nvchad-starter"

This reverts commit 9c59296b24.
This commit is contained in:
ulic-youthlic 2025-11-08 03:53:33 +08:00
parent 8fd58722da
commit 55c578d3db
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
12 changed files with 356 additions and 11 deletions

View file

@ -0,0 +1,18 @@
local options = {
formatters_by_ft = {
lua = { "stylua" },
-- css = { "prettier" },
-- html = { "prettier" },
nix = {
"nixfmt",
lsp_format = "fallback",
},
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_fallback = true,
},
}
return options

View file

@ -0,0 +1,8 @@
local options = {}
options = {
default_regexp_syntax = true,
use_default_semantic_hl_groups = true
}
return options

View file

@ -0,0 +1,45 @@
return {
defaults = { lazy = true },
install = { colorscheme = { "nvchad" } },
ui = {
icons = {
ft = "",
lazy = "󰂠 ",
loaded = "",
not_loaded = "",
},
},
performance = {
rtp = {
disabled_plugins = {
"2html_plugin",
"tohtml",
"getscript",
"getscriptPlugin",
"gzip",
"logipat",
"netrw",
"netrwPlugin",
"netrwSettings",
"netrwFileHandlers",
"matchit",
"tar",
"tarPlugin",
"rrhelper",
"spellfile_plugin",
"vimball",
"vimballPlugin",
"zip",
"zipPlugin",
"tutor",
"rplugin",
"syntax",
"synmenu",
"optwin",
"compiler",
"bugreport",
"ftplugin",
},
},
},
}

View file

@ -0,0 +1,23 @@
require("nvchad.configs.lspconfig").defaults()
vim.diagnostic.config({
virtual_lines = {
current_line = true,
source = "if_many"
},
virtual_text = false
})
local servers = {
"nixd",
"nil_ls",
"lua_ls",
"jsonls",
"taplo"
}
vim.lsp.enable(servers, true)
local lua_ls_libraries = vim.deepcopy(vim.lsp.config.lua_ls.settings.Lua.workspace.library)
table.insert(lua_ls_libraries,
#lua_ls_libraries, vim.fn.stdpath "data" .. "/lazy/NvChad/lua/nvchad")
vim.lsp.config.lua_ls.settings.Lua.workspace.library = lua_ls_libraries