summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/configs.lua
diff options
context:
space:
mode:
authorkiyan <yazdani.kiyan@protonmail.com>2021-02-22 23:01:12 +0100
committerKiyan <yazdani.kiyan@protonmail.com>2021-02-27 13:36:33 +0100
commit9d57216c0d94c9823c0d971caeaffb3b261e527e (patch)
tree987e0019a615dbf2cb1c7f7338194152d8032fd0 /lua/nvim-treesitter/configs.lua
parent91a89aa408c19572bd7a41caa8ab8666143bec8c (diff)
chore: remove useless code and indent files
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
-rw-r--r--lua/nvim-treesitter/configs.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua
index 4b815dd3..f6c86f8d 100644
--- a/lua/nvim-treesitter/configs.lua
+++ b/lua/nvim-treesitter/configs.lua
@@ -187,9 +187,9 @@ end
-- for vim.inspect (https://github.com/kikito/inspect.lua#optionsprocess)
local function config_info(process_function)
process_function = process_function or function(item, path)
- if path[#path] == vim.inspect.METATABLE then return end
- if path[#path] == "is_supported" then return end
- return item
+ if path[#path] == vim.inspect.METATABLE then return end
+ if path[#path] == "is_supported" then return end
+ return item
end
print(vim.inspect(config, {process = process_function}))
end
@@ -346,8 +346,8 @@ function M.attach_module(mod_name, bufnr, lang)
local resolved_mod = resolve_module(mod_name)
if resolved_mod
- and not attached_buffers_by_module.has(mod_name, bufnr)
- and M.is_enabled(mod_name, lang) then
+ and not attached_buffers_by_module.has(mod_name, bufnr)
+ and M.is_enabled(mod_name, lang) then
attached_buffers_by_module.set(mod_name, bufnr, true)
resolved_mod.attach(bufnr, lang)
end
@@ -393,7 +393,7 @@ end
function M.is_module(mod)
return type(mod) == 'table'
and ((type(mod.attach) == 'function' and type(mod.detach) == 'function')
- or type(mod.module_path) == 'string')
+ or type(mod.module_path) == 'string')
end
-- Initializes built-in modules and any queued modules