Removed some telescope dependencies
This commit is contained in:
parent
79ddb6faca
commit
4dc7351d8b
@ -3,10 +3,6 @@ return {
|
||||
dependencies = {
|
||||
'mfussenegger/nvim-dap-python',
|
||||
'theHamsta/nvim-dap-virtual-text',
|
||||
{
|
||||
'nvim-telescope/telescope-dap.nvim',
|
||||
dependencies = 'telescope.nvim',
|
||||
},
|
||||
'rcarriga/nvim-dap-ui',
|
||||
'rcarriga/cmp-dap',
|
||||
},
|
||||
@ -99,7 +95,7 @@ return {
|
||||
config.pythonPath = pythonVenv.getPythonEnv()
|
||||
config.cwd = vim.fn.getcwd()
|
||||
end
|
||||
require 'telescope'.extensions.dap.configurations {}
|
||||
require ('fzf-lua').dap_configurations()
|
||||
end
|
||||
|
||||
local masonpath = vim.fn.stdpath('data') .. '/mason'
|
||||
@ -220,6 +216,5 @@ return {
|
||||
-- EXTENSIONS
|
||||
|
||||
require('nvim-dap-virtual-text').setup({})
|
||||
require('telescope').load_extension('dap')
|
||||
end,
|
||||
}
|
||||
|
@ -1,8 +1,5 @@
|
||||
return {
|
||||
'kdheepak/lazygit.nvim',
|
||||
dependencies = {
|
||||
'nvim-telescope/telescope.nvim'
|
||||
},
|
||||
cmd = {
|
||||
'LazyGit',
|
||||
'LazyGitConfig',
|
||||
@ -10,9 +7,6 @@ return {
|
||||
'LazyGitFilterCurrentFile',
|
||||
'LazyGit',
|
||||
},
|
||||
config = function()
|
||||
require('telescope').load_extension('lazygit')
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
'<Space>g',
|
||||
|
@ -1,5 +1,4 @@
|
||||
local lspKeys = function(client, bufnr)
|
||||
-- local tele_builtins = require('telescope.builtin')
|
||||
local fzf = require('fzf-lua')
|
||||
local options = { noremap = true, silent = false, buffer = bufnr }
|
||||
vim.keymap.set('n', '<space>,', vim.diagnostic.goto_prev,
|
||||
|
@ -9,7 +9,8 @@ return {
|
||||
neogit.setup {
|
||||
integrations = {
|
||||
diffview = true,
|
||||
telescope = true
|
||||
telescope = false,
|
||||
fzf_lua = true
|
||||
},
|
||||
graph_style = "unicode",
|
||||
}
|
||||
|
@ -1,38 +0,0 @@
|
||||
return {
|
||||
'nvim-neorg/neorg',
|
||||
branch = 'main',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'luarocks.nvim',
|
||||
{
|
||||
'nvim-neorg/neorg-telescope',
|
||||
branch = 'main'
|
||||
}
|
||||
},
|
||||
ft = 'norg',
|
||||
cmd = 'Neorg',
|
||||
config = function()
|
||||
require('neorg').setup {
|
||||
load = {
|
||||
['core.defaults'] = {}, -- Loads default behaviour
|
||||
['core.export'] = {}, -- Loads default behaviour
|
||||
['core.concealer'] = {}, -- Adds pretty icons to your documents
|
||||
['core.completion'] = {
|
||||
config = {
|
||||
engine = 'nvim-cmp' }
|
||||
}, -- Adds pretty icons to your documents
|
||||
['core.dirman'] = { -- Manages Neorg workspaces
|
||||
config = {
|
||||
workspaces = {
|
||||
notes = '~/notes',
|
||||
},
|
||||
},
|
||||
},
|
||||
['core.itero'] = {},
|
||||
['core.promo'] = {},
|
||||
['core.export.markdown'] = {},
|
||||
['core.integrations.telescope'] = {},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
return {
|
||||
'luckasRanarison/nvim-devdocs',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-telescope/telescope.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
branch = 'master',
|
||||
opts = {},
|
||||
cmd = {
|
||||
'DevdocsFetch',
|
||||
'DevdocsInstall',
|
||||
'DevdocsUninstall',
|
||||
'DevdocsOpen',
|
||||
'DevdocsOpenFloat',
|
||||
'DevdocsOpenCurrent',
|
||||
'DevdocsOpenCurrentFloat',
|
||||
'DevdocsUpdate',
|
||||
'DevdocsUpdateAll',
|
||||
}
|
||||
}
|
@ -1,226 +0,0 @@
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
version = '*',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
'molecule-man/telescope-menufacture',
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
build =
|
||||
'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build',
|
||||
},
|
||||
'nvim-telescope/telescope-ui-select.nvim',
|
||||
},
|
||||
cmd = { 'Telescope' },
|
||||
enabled = false,
|
||||
keys = {
|
||||
{
|
||||
'<leader>f',
|
||||
function()
|
||||
require('telescope').extensions.menufacture.find_files({ no_ignore = false, hidden = true })
|
||||
end,
|
||||
desc = 'Find file',
|
||||
},
|
||||
{
|
||||
'<leader>c',
|
||||
function()
|
||||
require('telescope.builtin').commands()
|
||||
end,
|
||||
desc = 'Telescope commands',
|
||||
},
|
||||
{
|
||||
'<leader>g',
|
||||
function()
|
||||
Project_files()
|
||||
end,
|
||||
desc = 'Find git files',
|
||||
},
|
||||
{
|
||||
'<leader>o',
|
||||
function()
|
||||
require('telescope.builtin').oldfiles()
|
||||
end,
|
||||
desc = 'Find old files',
|
||||
},
|
||||
{
|
||||
'<leader>b',
|
||||
function()
|
||||
require('telescope.builtin').buffers()
|
||||
end,
|
||||
desc = 'Select buffer',
|
||||
},
|
||||
{
|
||||
'<leader>q',
|
||||
function()
|
||||
require('telescope.builtin').quickfix()
|
||||
end,
|
||||
desc = 'Quickfix list with telescope',
|
||||
},
|
||||
{
|
||||
'<leader>l',
|
||||
function()
|
||||
require('telescope').extensions.menufacture.live_grep()
|
||||
end,
|
||||
desc = 'Search in project',
|
||||
},
|
||||
{
|
||||
'<leader>j',
|
||||
function()
|
||||
require('telescope.builtin').jumplist()
|
||||
end,
|
||||
desc = 'Open jumplist',
|
||||
},
|
||||
{
|
||||
'<c-f>',
|
||||
function()
|
||||
require('telescope.builtin').current_buffer_fuzzy_find()
|
||||
end,
|
||||
desc = 'Find in buffer',
|
||||
},
|
||||
{
|
||||
'<leader>d',
|
||||
function()
|
||||
require('telescope').extensions.menufacture.grep_string()
|
||||
end,
|
||||
desc = 'Find in workspace',
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
if vim.loop.os_uname().sysname == 'Windows_NT' then
|
||||
vim.env.HOME = ''
|
||||
end
|
||||
local home = vim.env.HOME
|
||||
local actions = require('telescope.actions')
|
||||
|
||||
local mappingTab = {
|
||||
i = {
|
||||
['<cr>'] = actions.select_tab,
|
||||
['<C-b>'] = actions.select_default,
|
||||
},
|
||||
}
|
||||
|
||||
Project_files = function()
|
||||
local opts = {} -- define here if you want to define something
|
||||
local ok = pcall(require('telescope').extensions.menufacture.git_files, opts)
|
||||
if not ok then require('telescope').extensions.menufacture.find_files(opts) end
|
||||
end
|
||||
|
||||
|
||||
local telescopeConfig = require('telescope.config')
|
||||
|
||||
-- Clone the default Telescope configuration
|
||||
local vimgrep_arguments = { unpack(telescopeConfig.values.vimgrep_arguments) }
|
||||
|
||||
-- I want to search in hidden/dot files.
|
||||
table.insert(vimgrep_arguments, '--hidden')
|
||||
-- I don't want to search in the `.git` directory.
|
||||
table.insert(vimgrep_arguments, '--glob')
|
||||
table.insert(vimgrep_arguments, '!**/.git/*')
|
||||
|
||||
require('telescope').setup({
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
['<cr>'] = actions.select_default + actions.center,
|
||||
['<C-l>'] = actions.send_selected_to_loclist,
|
||||
['<C-q>'] = actions.smart_send_to_qflist,
|
||||
},
|
||||
},
|
||||
results_title = false,
|
||||
preview_title = false,
|
||||
borderchars = { '', '', '', '', '', '', '', '' },
|
||||
-- `hidden = true` is not supported in text grep commands.
|
||||
vimgrep_arguments = vimgrep_arguments,
|
||||
},
|
||||
pickers = {
|
||||
buffers = {
|
||||
sort_lastused = true,
|
||||
sort_mru = true,
|
||||
ignore_current_buffer = false,
|
||||
theme = 'ivy',
|
||||
mappings = {
|
||||
i = {
|
||||
['<c-w>'] = actions.delete_buffer,
|
||||
['<cr>'] = actions.select_default,
|
||||
},
|
||||
n = {
|
||||
['<c-w>'] = actions.delete_buffer,
|
||||
},
|
||||
},
|
||||
},
|
||||
find_files = {
|
||||
theme = 'ivy',
|
||||
previewer = false,
|
||||
-- `hidden = true` will still show the inside of `.git/` as it's not `.gitignore`d.
|
||||
find_command = { 'rg', '--files', '--hidden', '--glob', '!**/.git/*' },
|
||||
},
|
||||
oldfiles = {
|
||||
theme = 'ivy',
|
||||
},
|
||||
git_files = {
|
||||
theme = 'ivy',
|
||||
previewer = false,
|
||||
},
|
||||
lsp_references = {
|
||||
show_line = false,
|
||||
include_declaration = false,
|
||||
},
|
||||
lsp_dynamic_workspace_symbols = {
|
||||
theme = 'ivy',
|
||||
fname_width = 80,
|
||||
symbol_width = 55,
|
||||
symbol_type_width = 8,
|
||||
ignore_symbols = { 'namespace' }
|
||||
},
|
||||
lsp_document_symbols = {
|
||||
theme = 'ivy',
|
||||
fname_width = 80,
|
||||
symbol_width = 85,
|
||||
symbol_type_width = 8,
|
||||
ignore_symbols = { 'namespace' }
|
||||
},
|
||||
lsp_workspace_symbols = {
|
||||
fname_width = 30,
|
||||
symbol_width = 85,
|
||||
symbol_type_width = 8,
|
||||
ignore_symbols = { 'namespace' }
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
['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')
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'TelescopePreviewerLoaded',
|
||||
callback = function()
|
||||
vim.api.nvim_win_set_option(0, 'wrap', true)
|
||||
vim.api.nvim_win_set_option(0, 'number', true)
|
||||
end,
|
||||
})
|
||||
if vim.loop.os_uname().sysname == 'Windows_NT' then
|
||||
vim.env.HOME = home
|
||||
end
|
||||
vim.api.nvim_create_autocmd('BufEnter', {
|
||||
callback = function()
|
||||
if vim.opt.foldmethod:get() == 'expr' then
|
||||
vim.schedule(function()
|
||||
vim.opt.foldmethod = 'expr'
|
||||
end)
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user