diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-04 18:28:17 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-05 19:21:06 +0200 |
| commit | 5642507f6a35d2e25b1588a36d8ddfc525f1464d (patch) | |
| tree | d95ae24b0220deb9ce8674fea83fa6aba0747240 /lua/nvim-treesitter/configs.lua | |
| parent | 1ce1c73249cf5620726f9b00fd58cac1747b1e70 (diff) | |
Make luacheck happy
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index c31ca4f2..43dc944b 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -130,7 +130,7 @@ local function disable_mod_conf_autocmd(mod, lang) if not config_mod or not M.is_enabled(mod, lang) then return end - local cmd = string.format("lua require'nvim-treesitter.%s'.attach()", mod) + --local cmd = string.format("lua require'nvim-treesitter.%s'.attach()", mod) -- TODO(kyazdani): detach the correct autocmd... doesn't work when using %s, cmd for _, ft in pairs(parsers.lang_to_ft(lang)) do api.nvim_command(string.format("autocmd! NvimTreesitter FileType %s", ft)) @@ -260,7 +260,7 @@ function M.setup_module(mod, data, mod_name) end end elseif type(data) == 'table' and type(mod) == 'table' then - for key, value in pairs(data) do + for key, value in pairs(data) do M.setup_module(mod[key], value, key) end end @@ -289,7 +289,7 @@ end -- A module should contain an 'is_supported' function. -- @param mod the module table function M.is_module(mod) - return type(mod) == 'table' and type(mod.is_supported) == 'function' + return type(mod) == 'table' and type(mod.is_supported) == 'function' end return M |
