diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-15 22:01:02 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-18 14:17:22 +0200 |
| commit | 21ac88b9551072f49ba994f461f78794af43a5aa (patch) | |
| tree | 55dc297130daf9a59bb95479cef62b79869db7fe /lua | |
| parent | test(go): add cases for newlines de-indentation (diff) | |
| download | nvim-treesitter-21ac88b9551072f49ba994f461f78794af43a5aa.tar nvim-treesitter-21ac88b9551072f49ba994f461f78794af43a5aa.tar.gz nvim-treesitter-21ac88b9551072f49ba994f461f78794af43a5aa.tar.bz2 nvim-treesitter-21ac88b9551072f49ba994f461f78794af43a5aa.tar.lz nvim-treesitter-21ac88b9551072f49ba994f461f78794af43a5aa.tar.xz nvim-treesitter-21ac88b9551072f49ba994f461f78794af43a5aa.tar.zst nvim-treesitter-21ac88b9551072f49ba994f461f78794af43a5aa.zip | |
chore!: remove compat module for vim.ui
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index d4aa98e89..cc7413560 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -237,29 +237,6 @@ local function config_info(process_function) print(vim.inspect(config, { process = process_function })) end -if not vim.ui then - vim.ui = { - select = function(items, opts, on_choice) - vim.validate { - items = { items, "table", false }, - on_choice = { on_choice, "function", false }, - } - opts = opts or {} - local choices = { opts.prompt or "Select one of:" } - local format_item = opts.format_item or tostring - for i, item in pairs(items) do - table.insert(choices, string.format("%d: %s", i, format_item(item))) - end - local choice = vim.fn.inputlist(choices) - if choice < 1 or choice > #items then - on_choice(nil, nil) - else - on_choice(items[choice], choice) - end - end, - } -end - function M.edit_query_file(query_group, lang) lang = lang or parsers.get_buf_lang() local files = ts_query.get_query_files(lang, query_group, true) |
