mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 21:00:38 +00:00
Don't use new_async
It doesn't seem to be improving stuff as it is not supposed to Due to the half baked stats of the startuptime plugin, people were fooled no point in disabling filetype and whatenot See some discussion here: https://github.com/siduck76/NvChad/issues/175
This commit is contained in:
parent
936f368036
commit
6b4435caef
3 changed files with 4 additions and 29 deletions
13
init.lua
13
init.lua
|
@ -1,21 +1,10 @@
|
|||
require "options"
|
||||
|
||||
local chad_modules = {
|
||||
"options",
|
||||
"pluginList",
|
||||
"mappings",
|
||||
"utils"
|
||||
}
|
||||
|
||||
local async
|
||||
async =
|
||||
vim.loop.new_async(
|
||||
vim.schedule_wrap(
|
||||
function()
|
||||
for i = 1, #chad_modules, 1 do
|
||||
pcall(require, chad_modules[i])
|
||||
end
|
||||
async:close()
|
||||
end
|
||||
)
|
||||
)
|
||||
async:send()
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
local opt = vim.opt
|
||||
local g = vim.g
|
||||
|
||||
-- Turn these off at startup, will be enabled later just before loading the theme
|
||||
vim.cmd([[
|
||||
syntax off
|
||||
filetype off
|
||||
filetype plugin indent off
|
||||
]])
|
||||
|
||||
opt.ruler = false
|
||||
opt.hidden = true
|
||||
opt.ignorecase = true
|
||||
|
|
|
@ -3,13 +3,6 @@ vim.g.nvchad_theme = "onedark"
|
|||
local present, base16 = pcall(require, "base16")
|
||||
|
||||
if present then
|
||||
-- enabled these options, was disabled in options.lua
|
||||
vim.cmd([[
|
||||
syntax on
|
||||
filetype on
|
||||
filetype plugin indent on
|
||||
]])
|
||||
|
||||
base16(base16.themes["onedark"], true)
|
||||
require "highlights"
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue