diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-12-23 12:34:33 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-01-04 11:06:02 +0100 |
commit | 885c2f7281c2f064961e10fc7e55110dff718dc9 (patch) | |
tree | a7f8fe9a1dbc4a30942aeed510a2144be473b943 /runtime/lua/vim/lsp/protocol.lua | |
parent | a1ed941a7881122fda2fd48e71e890ed55e4d08e (diff) | |
download | rneovim-885c2f7281c2f064961e10fc7e55110dff718dc9.tar.gz rneovim-885c2f7281c2f064961e10fc7e55110dff718dc9.tar.bz2 rneovim-885c2f7281c2f064961e10fc7e55110dff718dc9.zip |
treesitter: simplify query reading logic
Only the plugin/package manager should "manage" after/. Consumers of
nvim_get_runtime_file() should not need to special case it (if your plugin
manager is broken then fix it instead).
Don't use vim.fn.readfile(). Lua can already read files. It is even
better at it than vim script.
expose M.get_query_files(). Listing the queries is essential for user
config debug, and let plugins do fun things with it.
Abstraction-by-obscurity is not useful (plugins can just cargo cult copy
the code anyway, better with public entry points).
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
0 files changed, 0 insertions, 0 deletions