diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-09 13:04:46 +0100 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2026-09-09 22:31:58 +0100 |
| commit | d039f19af54e73e1f076c29f1cb412c14612da07 (patch) | |
| tree | 7d5f04c1810d063dda4389af4bd2532511bb8787 /runtime/lua/vim/treesitter/dev.lua | |
| parent | 08dd3adffb60ae6c031f9b8310febd65bb14604e (diff) | |
| download | rneovim-d039f19af54e73e1f076c29f1cb412c14612da07.tar.gz rneovim-d039f19af54e73e1f076c29f1cb412c14612da07.tar.bz2 rneovim-d039f19af54e73e1f076c29f1cb412c14612da07.zip | |
build: enable more EmmyLua checks
Enable checks for unused code, deprecated calls, return types, and
annotations.
Fix the warnings and replace the deprecated highlight function. Keep
exceptions where old APIs are still needed or the checker gets it wrong.
AI-assisted
Diffstat (limited to 'runtime/lua/vim/treesitter/dev.lua')
| -rw-r--r-- | runtime/lua/vim/treesitter/dev.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/lua/vim/treesitter/dev.lua b/runtime/lua/vim/treesitter/dev.lua index aa50696238..228d434cdc 100644 --- a/runtime/lua/vim/treesitter/dev.lua +++ b/runtime/lua/vim/treesitter/dev.lua @@ -148,9 +148,8 @@ function TSTreeView:new(buf, lang) }, } - setmetatable(t, self) self.__index = self - return t + return setmetatable(t, self) end local decor_ns = api.nvim_create_namespace('nvim.treesitter.dev') |