mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 11:30:02 +02:00
new nvim config
This commit is contained in:
parent
4b730d3924
commit
7388c9bfd3
78 changed files with 1291 additions and 43 deletions
38
nvim-old/lua/plugins/editor/telescope.lua
Normal file
38
nvim-old/lua/plugins/editor/telescope.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
local config = require('config.plugins.telescope')
|
||||
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
main = 'telescope',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
'sharkdp/fd',
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
optional = true,
|
||||
opts = {
|
||||
defaults = config.key_groups or {},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = config.keys or {},
|
||||
opts = config.opts or {},
|
||||
config = function (_, opts)
|
||||
local override = {
|
||||
border = {
|
||||
prompt = { 1, 1, 1, 1 },
|
||||
results = { 1, 1, 1, 1 },
|
||||
preview = { 1, 1, 1, 1 },
|
||||
},
|
||||
-- borderchars = {
|
||||
-- prompt = { "─", "│", "─", "│", "├", "┤", "┴", "└" },
|
||||
-- results = { "─", "│", " ", "│", "┌", "┬", "│", "│" },
|
||||
-- preview = { "─", "│", "─", " ", "─", "┐", "┘", "─" },
|
||||
-- },
|
||||
}
|
||||
|
||||
opts.defaults = vim.tbl_deep_extend("force", opts.defaults, override)
|
||||
|
||||
require('telescope').setup(opts)
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue