Revert "feat: Move nvchad config to ulic-youthlic/nvchad-starter"
This reverts commit 9c59296b24.
This commit is contained in:
parent
8fd58722da
commit
55c578d3db
12 changed files with 356 additions and 11 deletions
18
nvchad/lua/configs/conform.lua
Normal file
18
nvchad/lua/configs/conform.lua
Normal 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
|
||||
8
nvchad/lua/configs/idris2.lua
Normal file
8
nvchad/lua/configs/idris2.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
local options = {}
|
||||
|
||||
options = {
|
||||
default_regexp_syntax = true,
|
||||
use_default_semantic_hl_groups = true
|
||||
}
|
||||
|
||||
return options
|
||||
45
nvchad/lua/configs/lazy.lua
Normal file
45
nvchad/lua/configs/lazy.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
23
nvchad/lua/configs/lspconfig.lua
Normal file
23
nvchad/lua/configs/lspconfig.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue