diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-10 21:47:50 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-16 09:34:31 +0200 |
| commit | a4e2692c7b9fb562eca39ce0bb10ec2544bc7ccb (patch) | |
| tree | b370b426c299b0b9358f9722d0a9af3355237b7c /lua/nvim-treesitter/locals.lua | |
| parent | 1849f30bb5d7f78ad0c3b129456917f170e4acf4 (diff) | |
Refactor: Add parsers.get_buf_lang
Diffstat (limited to 'lua/nvim-treesitter/locals.lua')
| -rw-r--r-- | lua/nvim-treesitter/locals.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/locals.lua b/lua/nvim-treesitter/locals.lua index c092a073..fe99cd81 100644 --- a/lua/nvim-treesitter/locals.lua +++ b/lua/nvim-treesitter/locals.lua @@ -43,7 +43,7 @@ end function M.iter_locals(bufnr, root, query_kind) query_kind = query_kind or 'locals' - local lang = parsers.ft_to_lang(api.nvim_buf_get_option(bufnr, "ft")) + local lang = parsers.get_buf_lang(bufnr) if not lang then return end local query = queries.get_query(lang, query_kind) |
