Skip to content

Commit 9069efe

Browse files
committed
Merge remote-tracking branch 'pr87-2/nabla-in-lazyvim'
2 parents 6e3c656 + b5b9624 commit 9069efe

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

README.md

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ Requirements
1515
------------
1616

1717
* Neovim nightly
18-
* A colorscheme which supports treesitter [see here](https://github.com/rockerBOO/awesome-neovim#tree-sitter-supported-colorscheme)
19-
* Tree-sitter : [nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
18+
* A colorscheme which supports treesitter [see here](https://github.com/rockerBOO/awesome-neovim#tree-sitter-supported-colorscheme) _(*)_
19+
* Tree-sitter : [nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) _(*)_
2020
(Not a dependency, but recommended to install parsers).
21-
* Latex parser : Install with `TSInstall latex`.
21+
* Latex parser : Install with `TSInstall latex` _(*)_
22+
23+
_(*): Skip when using LazyVim_
24+
2225

2326
Install
2427
-------
@@ -39,6 +42,45 @@ Install
3942
```
4043
</details>
4144

45+
<details>
46+
<summary>Using <a href="https://github.com/LazyVim/LazyVim">lazy.vim</a></summary>
47+
48+
```lua
49+
{
50+
"williamboman/mason.nvim",
51+
opts = { ensure_installed = { "tree-sitter-cli" } },
52+
},
53+
54+
{
55+
"jbyuki/nabla.nvim",
56+
dependencies = {
57+
"nvim-neo-tree/neo-tree.nvim",
58+
"williamboman/mason.nvim",
59+
},
60+
lazy = true,
61+
62+
config = function()
63+
require("nvim-treesitter.configs").setup({
64+
ensure_installed = { "latex" },
65+
auto_install = true,
66+
sync_install = false,
67+
})
68+
end,
69+
70+
keys = function()
71+
return {
72+
{
73+
"<leader>p",
74+
':lua require("nabla").popup()<cr>',
75+
desc = "NablaPopUp",
76+
},
77+
}
78+
end,
79+
},
80+
81+
```
82+
</details>
83+
4284
<details>
4385
<summary>Using the built-in package manager</summary>
4486

@@ -57,6 +99,8 @@ Install
5799
Configuration
58100
-------------
59101

102+
_(Default keymap to nabla-render in LazyVim is `<leader>p`)_
103+
60104
Bind the following command:
61105

62106
```vim

0 commit comments

Comments
 (0)