Change to NvChad complete. Zig needs to be only available compiler on windows for now

This commit is contained in:
David Holland 2023-09-13 15:56:44 +02:00
parent 882c6d2f63
commit 0855935763
Signed by: DustVoice
GPG Key ID: 47068995A14EDCA9
2 changed files with 18 additions and 14 deletions

View File

@ -1,6 +1,6 @@
local custom_init_path = vim.api.nvim_get_runtime_file("NvChad/init.lua", false)[1]
local nvchad = vim.api.nvim_get_runtime_file("NvChad", false)[1]
if custom_init_path then
package.path = './NvChad;./NvChad/lua/?/init.lua;./NvChad/lua/?.lua;' .. package.path
dofile(custom_init_path)
if nvchad then
package.path = nvchad .. ';' .. nvchad .. '/lua/?/init.lua;' .. nvchad .. '/lua/?.lua;' .. package.path
dofile(nvchad .. "/init.lua")
end

View File

@ -4,15 +4,15 @@ M.treesitter = {
ensure_installed = {
"vim",
"lua",
-- "html",
-- "css",
-- "javascript",
-- "typescript",
-- "tsx",
"html",
"css",
"javascript",
"typescript",
"tsx",
"c",
"cpp",
-- "markdown",
-- "markdown_inline",
"markdown",
"markdown_inline",
},
indent = {
enable = true,
@ -20,9 +20,10 @@ M.treesitter = {
-- "python"
-- },
},
-- prefer_git = true,
compilers = { "zig" },
auto_install = false,
-- command_extra_args = {
-- curl = { "--proxy", "http://ldiproxy.lsjv.rlp.de:8080"}
-- },
-- compilers = { "zig" },
}
M.mason = {
@ -41,6 +42,9 @@ M.mason = {
-- c/cpp stuff
"clangd",
"clang-format",
-- rust stuff
"rust-analyzer",
},
}