Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benlubas/neorg-se

a Search Engine for your Neorg notes
https://github.com/benlubas/neorg-se

neorg-module neovim neovim-plugin

Last synced: about 1 month ago
JSON representation

a Search Engine for your Neorg notes

Awesome Lists containing this project

README

        

# neorg-se

> [!WARNING]
> This is a work in progress. Please pin your version and treat updating like installing a new
> plugin until this warning is gone. Thanks!

Search text file content via the [Tantivy](https://github.com/quickwit-oss/tantivy) search engine,
all within Neovim.

---

## Commands

- `Neorg search index` - Create the search engine index for the current workspace. Must be run each
time you launch nvim before you can run a query (WIP like I said)
- `Neorg search query fulltext` - "normal" search. Searches body text, title, and categories
- `Neorg search query categories` - search for all files tagged with one or more categories

## Install

**You need the rust toolchain installed or this plugin will not build**

Lazy.nvim

Lazy's luarocks implementation is unable to build the luarock unless you manually
install `luarocks-build-rust-mlua` locally by running: `luarocks --local --lua-version 5.1 install
luarocks-build-rust-mlua` before you attempt to install this plugin.

After that, you can install like normal.

Rocks.nvim

`:Rocks install neorg-se`

```lua
["external.search"] = {
-- values shown are the default
config = {
-- Index the workspace when neovim launches. This process happens on a separate thread, so
-- it doesn't significantly contribute to startup time or block neovim
index_on_start = true,
}
},
```

## Integrations

This plugin can also act as a category completion source for
[benlubas/neorg-interim-ls](https://github.com/benlubas/neorg-interim-ls). No additional
configuration is required here. Just install and load this module and configure the rest in
neorg-interim-ls!