You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-22
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,11 @@ Papis.nvim is a [neovim](https://github.com/neovim/neovim) companion plugin for
8
8
- Place your cursor over a citation key and get information about the entry
9
9
- Automatically format new notes
10
10
- Tag completion in `info.yaml` files
11
+
- Insert formatted references
11
12
12
13
And this is just the beginning! With its fast and always up-to-date sqlite database (courtesy of [sqlite.lua](https://github.com/tami5/sqlite.lua)), a host of [additional features](#planned-features-and-improvements) are just waiting to be implemented. My hope is for this plugin to eventually become neovim's answer to emacs plugins such as [org-ref](https://github.com/jkitchin/org-ref), [helm-bibtex](https://github.com/tmalsburg/helm-bibtex), and [citar](https://github.com/emacs-citar/citar).
13
14
14
-
This plugin is currently in early beta. Bugs and breaking changes are expected. Breaking changes are communicated in a pinned issue and commit messages.
15
+
This plugin is currently in beta. Bugs and breaking changes are expected. Breaking changes are communicated in a pinned issue and commit messages.
15
16
16
17
While papis.nvim is likely buggy, it is equally likely unable to mess with your precious bibliography. First, it doesn't by itself alter your Papis `info.yaml` files; it always uses the `papis` command to do so. Second, this command is currently only invoked when adding new notes to an item. Your database should therefore be safe from corruption (**however**: have backups, gremlins waiting to pounce are not my responsibility). In the future, papis.nvim might directly edit `info.yaml` files, but if and when that happens, this will be clearly communicated as a breaking change.
17
18
@@ -163,27 +164,17 @@ The `flake.nix` provides an overlay that can be used to install `papis.nvim`. Wi
163
164
164
165
Papis.nvim exposes a rather large number of configuration options, most of which can be left alone -- and quite a few of which probably *should* be left alone (or not, if you're feeling brave). Currently, papis.nvim doesn't check whether you've managed to set incompatible options, and weird failures will likely occur in such instances.
165
166
166
-
Note that an empty setup function should work reasonably well when just test-driving the plugin. It will, however, slow neovim startup down considerably and should be replaced with a proper configuration.
167
-
168
167
Minimal setup:
169
168
170
169
```lua
171
170
require("papis").setup({
172
-
-- These are configuration options of the `papis` program relevant to papis.nvim.
173
-
-- Papis.nvim can get them automatically from papis, but this is very slow. It is
174
-
-- recommended to copy the relevant settings from your papis configuration file.
175
-
papis_python= {
176
-
dir="/path/to/my/library",
177
-
info_name="info.yaml", -- (when setting papis options `-` is replaced with `_`
178
-
-- in the keys names)
179
-
notes_name=[[notes.norg]],
180
-
},
181
171
-- Enable the default keymaps
182
172
enable_keymaps=true,
183
173
})
184
174
```
185
175
186
-
Full list of configuration options (with defaults):
Papis.nvim will start automatically according to the filename patterns defined in `init_filenames` (see the [setup section](#setup)). Additionally, it can also be started with `:PapisStart`. The rest of the functionality is covered in the [features section](#features).
427
+
Papis.nvim will start automatically according to the filetypes defined in `init_filetypes` (see the [setup section](#setup)). When first starting, papis.nvim will import some configuration values from Papis and save them in the database. If you update your Papis configuration, you should re-import the configuration into papis.nvim with `:PapisReInitConfig`.
0 commit comments