1
0
Эх сурвалжийг харах

nixpkgs/neovim: use telescope as vim.ui.select

Thomas Dy 1 долоо хоног өмнө
parent
commit
7b2776ac9f

+ 9 - 0
.config/nixpkgs/neovim/config/lua/user/plugins/telescope.lua

@@ -4,6 +4,7 @@ local telescope_actions = require('telescope.actions')
 local telescope_builtin = require('telescope.builtin')
 local telescope_pickers = require('telescope.pickers')
 local telescope_finders = require('telescope.finders')
+local telescope_themes = require('telescope.themes')
 local telescope_previewers = require('telescope.previewers')
 local telescope_putils = require('telescope.previewers.utils')
 local telescope_conf = require('telescope.config').values
@@ -102,11 +103,19 @@ telescope.setup({
       mappings = commit_mappings,
     },
   },
+  extensions = {
+    ['ui-select'] = {
+      telescope_themes.get_dropdown({})
+    }
+  }
 })
 
 -- use native sorter for better performance
 telescope.load_extension('fzf')
 
+-- use telescope for vim.ui.select
+telescope.load_extension('ui-select')
+
 -- custom picker to fallback to files if no git
 local function project_files()
   local ok = pcall(telescope_builtin.git_files, { show_untracked = true })

+ 4 - 0
.config/nixpkgs/neovim/plugins/sources.json

@@ -88,5 +88,9 @@
   "mawkler/demicolon.nvim": {
     "rev": "42eaf79845b777d3608b134f283d97ce44c87e82",
     "sha256": "19jmf8pkcyc6yfd45xb8hk6rnksanqmbqf3alwr5axgrr9xm2rsh"
+  },
+  "nvim-telescope/telescope-ui-select.nvim": {
+    "rev": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2",
+    "sha256": "1cgi4kmq99ssx97nnriff5674cjfvc3qsw62nx3iz0xqc6d4s631"
   }
 }