diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-01-09 19:03:53 +0100 |
|---|---|---|
| committer | Simon Hauser <Simon-Hauser@outlook.de> | 2022-01-09 19:03:53 +0100 |
| commit | e8ef88bfcbabde42b7a29e938dc5ebbdbb8b1c5f (patch) | |
| tree | fc838d290b85a9d5caf6509d3b6214bb90b3df61 | |
| parent | 01426c491b2b612b48f48b26e2e77679006999d3 (diff) | |
fix(builtin.treesitter): make sure that kind is not nil
If kind is nil then prefilter throws an error
fix #1631
| -rw-r--r-- | lua/telescope/builtin/files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua index c247ffc..d71cf65 100644 --- a/lua/telescope/builtin/files.lua +++ b/lua/telescope/builtin/files.lua @@ -252,7 +252,7 @@ local function prepare_match(entry, kind) local entries = {} if entry.node then - entry["kind"] = kind + entry["kind"] = vim.F.if_nil(kind, "") table.insert(entries, entry) else for name, item in pairs(entry) do |
