Skip to content
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
1 change: 1 addition & 0 deletions DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,7 @@ Contains some utility functions that can be passed to the `ft_func` or

```lua
ls.setup({
ft_func = require("luasnip.extras.filetype_functions").from_pos_or_filetype,
load_ft_func =
-- Also load both lua and json when a markdown-file is opened,
-- javascript for html.
Expand Down
3 changes: 2 additions & 1 deletion doc/luasnip.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*luasnip.txt* For NVIM v0.8.0 Last change: 2023 November 20
*luasnip.txt* For NVIM v0.8.0 Last change: 2023 November 22

==============================================================================
Table of Contents *luasnip-table-of-contents*
Expand Down Expand Up @@ -1611,6 +1611,7 @@ Contains some utility functions that can be passed to the `ft_func` or
passed to `load_ft_func` and takes care of extending the filetypes properly.
>lua
ls.setup({
ft_func = require("luasnip.extras.filetype_functions").from_pos_or_filetype,
load_ft_func =
-- Also load both lua and json when a markdown-file is opened,
-- javascript for html.
Expand Down