Skip to content

Commit

Permalink
cleanup(neorg.lua): remove vim.filetype logic in setup as it is alr…
Browse files Browse the repository at this point in the history
…eady 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
  • Loading branch information
NTBBloodbath committed Sep 14, 2023
1 parent ba958b0 commit 201ecc4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lua/neorg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 201ecc4

Please sign in to comment.