diff --git a/lua/please/parsing.lua b/lua/please/parsing.lua index f023e1a..2da797e 100644 --- a/lua/please/parsing.lua +++ b/lua/please/parsing.lua @@ -2,6 +2,8 @@ local logging = require('please.logging') local cursor = require('please.cursor') local future = require('please.future') +future.vim.treesitter.language.register('python', 'please') + local parsing = {} ---Checks if the parser for the given filetype is installed and if not prompts the user to install it. diff --git a/lua/please/plugin.lua b/lua/please/plugin.lua index 178cc53..6eb5385 100644 --- a/lua/please/plugin.lua +++ b/lua/please/plugin.lua @@ -48,13 +48,8 @@ local function create_user_command() command.create_user_command(cmds, cmd_name_to_opts) end -local function configure_treesitter() - future.vim.treesitter.language.register('python', 'please') -end - function M.load() configure_filetype() - configure_treesitter() create_user_command() debug.setup() end diff --git a/tests/please/BUILD b/tests/please/BUILD index d75af6c..741360c 100644 --- a/tests/please/BUILD +++ b/tests/please/BUILD @@ -16,6 +16,7 @@ neovim_test( deps = [ "//lua/please:cursor", "//lua/please:parsing", + "//lua/please/future", "//tests/utils:temptree", ], )