From 201ecc498469b481235fc434beea47b17d9fe6e0 Mon Sep 17 00:00:00 2001 From: NTBBloodbath Date: Thu, 14 Sep 2023 03:17:04 -0400 Subject: [PATCH] cleanup(neorg.lua): remove `vim.filetype` logic in setup as it is already covered by the ftdetect file FYI: ftdetect directory is going to be deleted once Neovim v0.10 release is stable as I've added support for norg filetype in core --- lua/neorg.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lua/neorg.lua b/lua/neorg.lua index 36e8ec3fa..99585f570 100644 --- a/lua/neorg.lua +++ b/lua/neorg.lua @@ -15,15 +15,6 @@ function neorg.setup(cfg) -- Create a new global instance of the neorg logger log.new(config.user_config.logger or log.get_default_config(), true) - -- Make the Neorg filetype detectable through `vim.filetype`. - -- TODO: Make a PR to Neovim to natively support the org and norg - -- filetypes. - vim.filetype.add({ - extension = { - norg = "norg", - }, - }) - -- If the file we have entered has a .norg extension if vim.fn.expand("%:e") == "norg" or not config.user_config.lazy_loading then -- Then boot up the environment