diff --git a/lua/core/options.lua b/lua/core/options.lua index b2dbdbf..d8f7fe7 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -1,15 +1,19 @@ local opt = vim.opt local g = vim.g local config = require("core.utils").load_config() +local vim_version = vim.version() g.nvchad_theme = config.ui.theme g.toggle_theme_icon = "  " g.transparency = config.ui.transparency g.theme_switcher_loaded = false --- use filetype.lua instead of filetype.vim -g.did_load_filetypes = 0 -g.do_filetype_lua = 1 +-- use filetype.lua instead of filetype.vim. it's enabled by default in neovim 0.8 (nightly) +if vim_version.minor < 8 then + g.did_load_filetypes = 0 + g.do_filetype_lua = 1 +end + opt.laststatus = 3 -- global statusline opt.showmode = false