Refactor locals.lua:

- shared query group stuff -> query.lua
- local-specific stuff from ts_utils -> locals.lua
This commit is contained in:
Stephan Seitz 2020-07-10 22:17:51 +02:00 committed by Thomas Vigouroux
parent a4e2692c7b
commit 8cf2dc7f9a
11 changed files with 290 additions and 295 deletions

View file

@ -54,7 +54,7 @@ hlmap["include"] = "TSInclude"
function M.attach(bufnr, lang)
local bufnr = bufnr or api.nvim_get_current_buf()
local lang = parsers.get_buf_lang(bufnr, lang)
local lang = lang or parsers.get_buf_lang(bufnr)
local config = configs.get_module('highlight')
for k, v in pairs(config.custom_captures) do