Add project plugin and clean up how telescope extensions work
This commit is contained in:
parent
6461c2cbc2
commit
f110b8c33a
|
@ -35,6 +35,7 @@ vim.keymap.set("n", "<leader>fl", "<cmd>Telescope lsp_document_symbols<cr>")
|
|||
vim.keymap.set("n", "<leader>fe", "<cmd>Telescope diagnostics<cr>")
|
||||
vim.keymap.set("n", "<leader>fs", "<cmd>Telescope treesitter<cr>")
|
||||
vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>")
|
||||
vim.keymap.set("n", "<leader>fp", "<cmd>Telescope projects<cr>")
|
||||
|
||||
-- Neotree
|
||||
vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>")
|
||||
|
|
5
config/nvim/lua/config/project.lua
Normal file
5
config/nvim/lua/config/project.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
ignore_lsp = { "efm", "null_ls" },
|
||||
show_hidden = true,
|
||||
silent_chdir = false,
|
||||
}
|
6
config/nvim/lua/plugins/project.lua
Normal file
6
config/nvim/lua/plugins/project.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"ahmedkhalf/project.nvim",
|
||||
config = function()
|
||||
require("project_nvim").setup(require("config.project"))
|
||||
end,
|
||||
}
|
|
@ -2,31 +2,31 @@ return {
|
|||
"nvim-telescope/telescope.nvim",
|
||||
branch = "0.1.x",
|
||||
cmd = "Telescope",
|
||||
config = function() require("telescope").setup(require "config.telescope") end,
|
||||
config = function()
|
||||
require("telescope").setup(require "config.telescope")
|
||||
require("telescope").load_extension "fzf"
|
||||
require("telescope").load_extension "lazy"
|
||||
require("telescope").load_extension "luasnip"
|
||||
require("telescope").load_extension "git_diffs"
|
||||
require("telescope").load_extension "command_center"
|
||||
require("telescope").load_extension "http"
|
||||
require("telescope").load_extension "advanced_git_search"
|
||||
require("telescope").load_extension "projects"
|
||||
end,
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-lua/plenary.nvim",
|
||||
{
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
build = "make",
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
config = function() require("telescope").load_extension "fzf" end,
|
||||
},
|
||||
{
|
||||
"tsakirist/telescope-lazy.nvim",
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"folke/lazy.nvim",
|
||||
},
|
||||
config = function() require("telescope").load_extension "lazy" end,
|
||||
dependencies = { "folke/lazy.nvim" },
|
||||
},
|
||||
{
|
||||
"benfowler/telescope-luasnip.nvim",
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"L3MON4D3/LuaSnip",
|
||||
},
|
||||
config = function() require("telescope").load_extension "luasnip" end,
|
||||
dependencies = { "L3MON4D3/LuaSnip" },
|
||||
},
|
||||
{
|
||||
"paopaol/telescope-git-diffs.nvim",
|
||||
|
@ -34,23 +34,13 @@ return {
|
|||
"nvim-lua/plenary.nvim",
|
||||
"sindrets/diffview.nvim",
|
||||
},
|
||||
config = function() require("telescope").load_extension "git_diffs" end,
|
||||
},
|
||||
{
|
||||
"FeiyouG/command_center.nvim",
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
config = function() require("telescope").load_extension "command_center" end,
|
||||
},
|
||||
{
|
||||
"barrett-ruth/telescope-http.nvim",
|
||||
dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" },
|
||||
config = function() require("telescope").load_extension "http" end,
|
||||
dependencies = { "savq/paq-nvim" },
|
||||
},
|
||||
{
|
||||
"aaronhallaert/advanced-git-search.nvim",
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
config = function() require("telescope").load_extension "advanced_git_search" end,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue