aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-12-23 12:34:33 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-01-04 11:06:02 +0100
commit885c2f7281c2f064961e10fc7e55110dff718dc9 (patch)
treea7f8fe9a1dbc4a30942aeed510a2144be473b943 /runtime/lua/vim/lsp/protocol.lua
parenta1ed941a7881122fda2fd48e71e890ed55e4d08e (diff)
downloadrneovim-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