Skip to content

Commit caa5dc2

Browse files
committed
removes call to luasnip config as it overwrites user config
1 parent 220c748 commit caa5dc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ cursor is within math mode. Alternatively, you can use
1818
Can be installed like any neovim plugin. If using
1919
[wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim):
2020

21+
For autosnippets to work correctly one should enable them in the luasnip config (`require('luasnip').setup({enable_autosnippets = true})`).
22+
2123
```lua
2224
use {
2325
"iurimateus/luasnip-latex-snippets.nvim",

lua/luasnip-latex-snippets/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ local default_opts = {
1414
M.setup = function(opts)
1515
opts = vim.tbl_deep_extend("force", default_opts, opts or {})
1616

17-
ls.config.setup({ enable_autosnippets = true })
17+
-- ls.config.setup({ enable_autosnippets = true })
1818

1919
local augroup = vim.api.nvim_create_augroup("luasnip-latex-snippets", {})
2020
vim.api.nvim_create_autocmd("FileType", {

0 commit comments

Comments
 (0)