added menufacture

This commit is contained in:
Oliver Hartmann 2023-02-20 21:27:24 +01:00
parent 99690477af
commit bc278c2a62
2 changed files with 15 additions and 8 deletions

View File

@ -56,9 +56,9 @@
"plenary.nvim": { "branch": "master", "commit": "9a0d3bf7b832818c042aaf30f692b081ddd58bd9" },
"project.nvim": { "branch": "main", "commit": "685bc8e3890d2feb07ccf919522c97f7d33b94e4" },
"sqlite.lua": { "branch": "master", "commit": "93ff5824682ecc874200e338fd8ca9ccd08508f8" },
"statuscol.nvim": { "branch": "main", "commit": "49a3bdab3e9cf23982724c1e888a6296fca4c8b9" },
"telescope-dap.nvim": { "branch": "master", "commit": "313d2ea12ae59a1ca51b62bf01fc941a983d9c9c" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "580b6c48651cabb63455e97d7e131ed557b8c7e2" },
"telescope-menufacture": { "branch": "main", "commit": "44aa65bd42290fca37bb466f257295dbc869a13c" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "62ea5e58c7bbe191297b983a9e7e89420f581369" },
"telescope.nvim": { "branch": "master", "commit": "203bf5609137600d73e8ed82703d6b0e320a5f36" },
"toggleterm.nvim": { "branch": "main", "commit": "19aad0f41f47affbba1274f05e3c067e6d718e1e" },

View File

@ -3,6 +3,7 @@ return {
dependencies = {
'nvim-lua/plenary.nvim',
'kyazdani42/nvim-web-devicons',
'molecule-man/telescope-menufacture',
{
'nvim-telescope/telescope-fzf-native.nvim',
build = {
@ -19,7 +20,7 @@ return {
{
'<leader>f',
function()
require('telescope.builtin').find_files({ no_ignore = true, hidden = true })
require('telescope').extensions.menufacture.find_files({ no_ignore = true, hidden = true })
end,
desc = 'Find file',
},
@ -68,7 +69,7 @@ return {
{
'<leader>l',
function()
require('telescope.builtin').live_grep()
require('telescope').extensions.menufacture.live_grep()
end,
desc = 'Search in project',
},
@ -89,7 +90,7 @@ return {
{
'<leader>d',
function()
require('telescope.builtin').grep_string()
require('telescope').extensions.menufacture.grep_string()
end,
desc = 'Find in workspace',
},
@ -113,8 +114,8 @@ return {
Project_files = function()
local opts = {} -- define here if you want to define something
local ok = pcall(require 'telescope.builtin'.git_files, opts)
if not ok then require 'telescope.builtin'.find_files(opts) end
local ok = pcall(require('telescope').extensions.menufacture.git_files, opts)
if not ok then require('telescope').extensions.menufacture.find_files(opts) end
end
@ -170,7 +171,7 @@ return {
previewer = false,
},
lsp_references = {
show_line = false;
show_line = false,
include_declaration = false,
},
lsp_dynamic_workspace_symbols = {},
@ -179,11 +180,17 @@ return {
['ui-select'] = {
require('telescope.themes').get_dropdown {
}
}
},
['menufacture'] = {
mappings = {
main_menu = { [{ 'n' }] = 'm' },
},
},
}
})
require('telescope').load_extension('ui-select')
require('telescope').load_extension('fzf')
require('telescope').load_extension('menufacture')
end
}