Skip to content

Commit 12f8a40

Browse files
authored
Merge pull request #58 from jghauser/move-to-pathlib
Remove plenary.nvim
2 parents ba4317d + d139cfe commit 12f8a40

25 files changed

+413
-337
lines changed

README.md

+34-25
Original file line numberDiff line numberDiff line change
@@ -73,59 +73,69 @@ To run, papis.nvim requires the [yq](https://github.com/mikefarah/yq) utility to
7373

7474
You'll need the [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) plugin if you intend to use the completion module.
7575

76-
### Package managers
76+
### Neovim package managers
7777

78-
With rocks.nvim:
78+
In addition to the below snippets, make sure to also install the *treesitter yaml parser* if you intend to use the completion module.
79+
80+
<details>
81+
<summary>rocks.nvim configuration</summary>
7982

8083
```vim
8184
:Rocks install papis.nvim
8285
```
8386

84-
With packer:
87+
</details>
88+
89+
<details>
90+
<summary>lazy.nvim configuration</summary>
8591

8692
```lua
87-
use({
93+
{
8894
"jghauser/papis.nvim",
89-
after = { "telescope.nvim", "nvim-cmp" },
90-
requires = {
95+
dependencies = {
9196
"kkharji/sqlite.lua",
92-
"nvim-lua/plenary.nvim",
97+
"pysan3/pathlib.nvim"
9398
"MunifTanjim/nui.nvim",
9499
},
95100
config = function()
96-
require("papis").setup(
101+
require("papis").setup({
97102
-- Your configuration goes here
98-
)
103+
})
99104
end,
100-
})
105+
}
101106
```
102107

103-
With lazy.nvim:
108+
</details>
109+
110+
<details>
111+
<summary>packer configuration</summary>
104112

105113
```lua
106-
{
114+
use({
107115
"jghauser/papis.nvim",
108-
dependencies = {
116+
after = { "telescope.nvim", "nvim-cmp" },
117+
requires = {
109118
"kkharji/sqlite.lua",
110-
"nvim-lua/plenary.nvim",
119+
"pysan3/pathlib.nvim"
111120
"MunifTanjim/nui.nvim",
112121
},
113122
config = function()
114-
require("papis").setup({
123+
require("papis").setup(
115124
-- Your configuration goes here
116-
})
125+
)
117126
end,
118-
}
127+
})
119128
```
120129

121-
Additional dependencies:
122-
123-
- *treesitter yaml parser*: Required by the completion module.
130+
</details>
124131

125132
### Nix
126133

127134
The `flake.nix` provides an overlay that can be used to install `papis.nvim`. With `home-manager`, this can be achieved with something along the following lines:
128135

136+
<details>
137+
<summary>Nix configuration</summary>
138+
129139
```nix
130140
{
131141
inputs = {
@@ -158,6 +168,8 @@ The `flake.nix` provides an overlay that can be used to install `papis.nvim`. Wi
158168
}
159169
```
160170

171+
</details>
172+
161173
## Setup
162174

163175
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.
@@ -398,12 +410,9 @@ init_filetypes = { "markdown", "norg", "yaml" },
398410
-- Configuration of logging.
399411
log = {
400412

401-
-- What levels to log (`off` to disable). Debug mode is more conveniently
413+
-- What levels to log. Debug mode is more conveniently
402414
-- enabled in `enable_modules`.
403-
level = "off",
404-
405-
-- How to format log strings.
406-
notify_format = "%s",
415+
level = "info",
407416
},
408417
```
409418

doc/papis.txt

+25-27
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*papis.txt* For NVIM v0.8.0 Last change: 2024 June 03
1+
*papis.txt* For NVIM v0.8.0 Last change: 2024 June 04
22

33
==============================================================================
44
Table of Contents *papis-table-of-contents*
@@ -134,62 +134,63 @@ You’ll need the nvim-cmp <https://github.com/hrsh7th/nvim-cmp> plugin if you
134134
intend to use the completion module.
135135

136136

137-
PACKAGE MANAGERS ~
137+
NEOVIM PACKAGE MANAGERS ~
138138

139-
With rocks.nvim:
139+
In addition to the below snippets, make sure to also install the _treesitter
140+
yaml parser_ if you intend to use the completion module.
141+
142+
rocks.nvim configuration ~
140143

141144
>vim
142145
:Rocks install papis.nvim
143146
<
144147

145-
With packer:
148+
lazy.nvim configuration ~
146149

147150
>lua
148-
use({
151+
{
149152
"jghauser/papis.nvim",
150-
after = { "telescope.nvim", "nvim-cmp" },
151-
requires = {
153+
dependencies = {
152154
"kkharji/sqlite.lua",
153-
"nvim-lua/plenary.nvim",
155+
"pysan3/pathlib.nvim"
154156
"MunifTanjim/nui.nvim",
155157
},
156158
config = function()
157-
require("papis").setup(
159+
require("papis").setup({
158160
-- Your configuration goes here
159-
)
161+
})
160162
end,
161-
})
163+
}
162164
<
163165

164-
With lazy.nvim:
166+
packer configuration ~
165167

166168
>lua
167-
{
169+
use({
168170
"jghauser/papis.nvim",
169-
dependencies = {
171+
after = { "telescope.nvim", "nvim-cmp" },
172+
requires = {
170173
"kkharji/sqlite.lua",
171-
"nvim-lua/plenary.nvim",
174+
"pysan3/pathlib.nvim"
172175
"MunifTanjim/nui.nvim",
173176
},
174177
config = function()
175-
require("papis").setup({
178+
require("papis").setup(
176179
-- Your configuration goes here
177-
})
180+
)
178181
end,
179-
}
182+
})
180183
<
181184

182-
Additional dependencies:
183-
184-
- _treesitter yaml parser_: Required by the completion module.
185-
186185

187186
NIX ~
188187

189188
The `flake.nix` provides an overlay that can be used to install `papis.nvim`.
190189
With `home-manager`, this can be achieved with something along the following
191190
lines:
192191

192+
Nix configuration ~
193+
193194
>nix
194195
{
195196
inputs = {
@@ -466,12 +467,9 @@ All configuration options (with defaults) ~
466467
-- Configuration of logging.
467468
log = {
468469

469-
-- What levels to log (`off` to disable). Debug mode is more conveniently
470+
-- What levels to log. Debug mode is more conveniently
470471
-- enabled in `enable_modules`.
471-
level = "off",
472-
473-
-- How to format log strings.
474-
notify_format = "%s",
472+
level = "info",
475473
},
476474
<
477475

flake.lock

+36-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)