nvim-telescope / telescope-ui-select.nvim

MIT License
774 stars 18 forks source link

Help me with configuration #17

Closed DartMitai closed 1 year ago

DartMitai commented 1 year ago

Help the noob with the configuration of your plugin and nvim-lightbulb, copied the code from the README, but when entering the command :lua vm.ls.buf.code_action() telescope-ui-select does not work, what else do I need to write? Снимок экрана от 2022-11-21 22-50-50

DartMitai commented 1 year ago

copied the configuration from JafarAbdi

local dropdown_configs = {
  layout_strategy = "vertical",
  layout_config = {
    prompt_position = "bottom",
    vertical = {
      width = 0.8,
      height = 100,
    },
  },
}

require("telescope").setup({
  defaults = require("telescope.themes").get_dropdown(dropdown_configs),
})

require("telescope").setup({
  extensions = {
    ["ui-select"] = {
      require("telescope.themes").get_dropdown(dropdown_configs),
    },
  },

but still the output goes through the native part...

JafarAbdi commented 1 year ago

The link you shared redirects to this repo, could you please share a minimal reproducible example?

I wonder if you forgot to load the extension.

require("telescope").load_extension("ui-select")
DartMitai commented 1 year ago

https://github.com/MitaiDart/dotfiles/tree/master/nvim

DartMitai commented 1 year ago

Ссылка, которой вы поделились, перенаправляет на этот репозиторий, не могли бы вы поделиться минимальным воспроизводимым примером?

Интересно, не забыли ли вы загрузить расширение.

требуется ("телескоп").load_extension("ui-select")

full config telescop

local dropdown_configs = {
  layout_strategy = "vertical",
  layout_config = {
    prompt_position = "bottom",
    vertical = {
      width = 0.8,
      height = 100,
    },
  },
}

require("telescope").setup({
  defaults = require("telescope.themes").get_dropdown(dropdown_configs),
})

require("telescope").setup {
  extensions = {
    ["ui-select"] = {
      require("telescope.themes").get_dropdown {
        dropdown_configs
      }
    }
  }
}
require("telescope").load_extension("ui-select")
require("telescope").load_extension("flutter")

packer

-- Telescope
  use {
    'nvim-telescope/telescope.nvim',
    requires = {
      'nvim-lua/plenary.nvim',
      'nvim-telescope/telescope-ui-select.nvim' },
    config = function()
      require('telescope')
    end
  }

NVIM v0.8.1 Build type: Release LuaJIT 2.1.0-beta3

Conni2461 commented 1 year ago

Looking at your dots it seems like you want

-- Telescope
  use {
    'nvim-telescope/telescope.nvim',
    requires = {
      'nvim-lua/plenary.nvim',
      'nvim-telescope/telescope-ui-select.nvim' },
    config = function()
      require('plugins.telescope') -- you forgot that your module is in plugins dir, here
    end
  }
DartMitai commented 1 year ago

Глядя на ваши точки, кажется, что вы хотите

используйте--
   Telescope {
 'nvim-telescope/telescope.nvim',
требуется = {
 'nvim-lua/plenary.nvim', 
'nvim-телескоп / телескоп-ui-select.nvim' },
config = функция ()
 требуется ('плагины.телескоп') -- вы забыли, что ваш модуль находится в каталоге плагинов, здесь
     конец
}

everything works thank you very much))