We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef2c6f commit d6d6a2cCopy full SHA for d6d6a2c
lua/indentmini/init.lua
@@ -116,7 +116,8 @@ end
116
local function make_snapshot(lnum)
117
local line_text = ffi.string(ml_get(lnum))
118
local is_empty = #line_text == 0 or only_spaces_or_tabs(line_text)
119
- if is_empty and treesitter.get_parser() then
+ local ok = pcall(treesitter.get_paser)
120
+ if is_empty and ok then
121
local indent = ts_get_indent(lnum)
122
if indent then
123
local snapshot = {
0 commit comments