Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 44c39f9

Browse files
authored
Merge pull request #170 from kristijanhusak/fix/vsnip
Fix fetching vsnip snippets list. Fixes #169.
2 parents b354c7f + 4fb4e4e commit 44c39f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/completion/source/snippet.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353

5454
M.getVsnipItems = function(prefix)
5555
if vim.fn.exists('g:loaded_vsnip') == 0 then return {} end
56-
local snippetsList = api.nvim_call_function('vsnip#source#find', {api.nvim_buf_get_option(0, 'filetype')})
56+
local snippetsList = api.nvim_call_function('vsnip#source#find', {api.nvim_get_current_buf()})
5757
local complete_items = {}
5858
if vim.tbl_isempty(snippetsList) == 0 then
5959
return {}

0 commit comments

Comments
 (0)