Skip to content

Commit

Permalink
Replace dressing.nvim with Snacks.input and Telescop.ui_select
Browse files Browse the repository at this point in the history
  • Loading branch information
knmac committed Dec 16, 2024
1 parent 025528c commit a09dcd7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
6 changes: 0 additions & 6 deletions lua/plugins/coding/lspconfig-mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ return {
"neovim/nvim-lspconfig",
event = "VeryLazy",
dependencies = {
-- UI improvement for vim.ui.select and vim.ui.input
-- Good for renaming prompt (appear at the variable location)
{
"stevearc/dressing.nvim",
event = "VeryLazy",
},
-- statusline/winbar component using lsp
{
"SmiteshP/nvim-navic",
Expand Down
13 changes: 9 additions & 4 deletions lua/plugins/utils/session_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ return {
"nvim-lua/plenary.nvim",
event = "VeryLazy",
},
{
"stevearc/dressing.nvim",
event = "VeryLazy",
},
-- -- UI improvement for vim.ui.select and vim.ui.input
-- {
-- "stevearc/dressing.nvim",
-- event = "VeryLazy",
-- opts = {
-- input = { enabled = false }, -- Use Snacks.input instead
-- select = { enabled = true },
-- }
-- },
},
event = "BufEnter",
keys = {
Expand Down
2 changes: 1 addition & 1 deletion lua/plugins/utils/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ return {
},
indent = { enabled = true },
-- ────────────────────────────────────────────────────────────────────────────────────────
-- input = { enabled = true },
input = { enabled = true },
notifier = { enabled = true, top_down = false, },
quickfile = { enabled = true },
scroll = { enabled = true },
Expand Down
12 changes: 7 additions & 5 deletions lua/plugins/utils/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ return {
"nvim-telescope/telescope.nvim", -- fuzzy finder for multiple things
event = "VeryLazy",
dependencies = {
{ "nvim-telescope/telescope-ui-select.nvim", event = "VeryLazy" },
{
"nvim-telescope/telescope-bibtex.nvim", -- fuzzy finder for bibtex entries
event = "VeryLazy",
Expand Down Expand Up @@ -97,18 +98,18 @@ return {
-- extension_config_key = value,
-- }
-- please take a look at the readme of the extension you want to configure
["ui-select"] = {
require("telescope.themes").get_dropdown {
-- even more opts
}
},
["fzf"] = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
},
-- ['ui-select'] = {
-- require('telescope.themes').get_dropdown {
-- -- even more opts
-- }
-- },
["bibtex"] = {
-- Path to global bibliographies (placed outside of the project)
-- global_files = {
Expand All @@ -125,6 +126,7 @@ return {
})

-- Load other telescope extensions
require("telescope").load_extension("ui-select")
require("telescope").load_extension("fzf")
require("telescope").load_extension("bibtex")
-- require("telescope").load_extension("notify")
Expand Down

0 comments on commit a09dcd7

Please sign in to comment.