Skip to content

removes call to luasnip config as it overwrites user config #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cursor is within math mode. Alternatively, you can use
Can be installed like any neovim plugin. If using
[wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim):

For autosnippets to work correctly one should enable them in the luasnip config (`require('luasnip').setup({enable_autosnippets = true})`).

```lua
use {
"iurimateus/luasnip-latex-snippets.nvim",
Expand Down
2 changes: 0 additions & 2 deletions lua/luasnip-latex-snippets/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ local default_opts = {
M.setup = function(opts)
opts = vim.tbl_deep_extend("force", default_opts, opts or {})

ls.config.setup({ enable_autosnippets = true })

local augroup = vim.api.nvim_create_augroup("luasnip-latex-snippets", {})
vim.api.nvim_create_autocmd("FileType", {
pattern = "tex",
Expand Down