Skip to content

Commit

Permalink
refactor!: make Neovim 0.10 a requirement for Neorg
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jul 8, 2024
1 parent 799961b commit 837c6c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Neorg - An Organized Future

<a href="https://neovim.io"> ![Neovim](https://img.shields.io/badge/Neovim%200.8+-brightgreen?style=for-the-badge) </a>
<a href="https://neovim.io"> ![Neovim](https://img.shields.io/badge/Neovim%200.10+-brightgreen?style=for-the-badge) </a>
<a href="https://discord.gg/T6EgTAX7ht"> ![Discord](https://img.shields.io/badge/discord-join-7289da?style=for-the-badge&logo=discord) </a>
<a href="/LICENSE"> ![License](https://img.shields.io/badge/license-GPL%20v3-brightgreen?style=for-the-badge)</a>
<a href="https://dotfyle.com/plugins/nvim-neorg/neorg"> ![Usage](https://dotfyle.com/plugins/nvim-neorg/neorg/shield?style=for-the-badge) </a>
Expand Down Expand Up @@ -70,7 +70,9 @@ A video tutorial may be found on Youtube:

Neorg's setup process is slightly more complex than average, so we encourage you to be patient :)

**After you're done with the installation process, run `:checkhealth neorg` to see if everything's correct!**
**Neorg requires Neovim 0.10 or above to function. After you're done with the
installation process, run `:checkhealth neorg` to see if everything's
correct!**

### `rocks.nvim`

Expand Down
8 changes: 0 additions & 8 deletions lua/neorg/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,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)

-- TODO(vhyrro): Remove this after Neovim 0.10, where `norg` files will be
-- detected automatically.
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 837c6c3

Please sign in to comment.