mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
switch from telescope-project.nvim to project.nvim
This commit is contained in:
parent
b4e5852f48
commit
0d9df06bce
@ -45,7 +45,7 @@ end)
|
|||||||
vim.keymap.set("n", "<Leader>fz", require("telescope").extensions.zoxide.list)
|
vim.keymap.set("n", "<Leader>fz", require("telescope").extensions.zoxide.list)
|
||||||
|
|
||||||
-- Project
|
-- Project
|
||||||
require("telescope").load_extension("project")
|
require("telescope").load_extension("projects")
|
||||||
vim.keymap.set("n", "<C-p>", function()
|
vim.keymap.set("n", "<C-p>", function()
|
||||||
local opts = require("telescope.themes").get_ivy({
|
local opts = require("telescope.themes").get_ivy({
|
||||||
layout_config = {
|
layout_config = {
|
||||||
@ -54,7 +54,7 @@ vim.keymap.set("n", "<C-p>", function()
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("telescope").extensions.project.project(opts)
|
require("telescope").extensions.projects.projects(opts)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- File browser
|
-- File browser
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
pkgs.vimPlugins.telescope-nvim
|
pkgs.vimPlugins.telescope-nvim
|
||||||
pkgs.vimPlugins.telescope-project-nvim
|
pkgs.vimPlugins.project-nvim
|
||||||
pkgs.vimPlugins.telescope-fzy-native-nvim
|
pkgs.vimPlugins.telescope-fzy-native-nvim
|
||||||
pkgs.vimPlugins.telescope-file-browser-nvim
|
pkgs.vimPlugins.telescope-file-browser-nvim
|
||||||
pkgs.vimPlugins.telescope-zoxide
|
pkgs.vimPlugins.telescope-zoxide
|
||||||
@ -25,10 +25,11 @@
|
|||||||
extensions = {
|
extensions = {
|
||||||
fzy_native = { };
|
fzy_native = { };
|
||||||
zoxide = { };
|
zoxide = { };
|
||||||
project = { base_dirs = [ "~/dev" ]; };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
setup.project_nvim = { };
|
||||||
|
|
||||||
lua = builtins.readFile ./telescope.lua;
|
lua = builtins.readFile ./telescope.lua;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -12,9 +12,11 @@
|
|||||||
setup.nvim-tree = {
|
setup.nvim-tree = {
|
||||||
disable_netrw = true;
|
disable_netrw = true;
|
||||||
hijack_netrw = true;
|
hijack_netrw = true;
|
||||||
|
sync_root_with_cwd = true;
|
||||||
|
respect_buf_cwd = true;
|
||||||
update_focused_file = {
|
update_focused_file = {
|
||||||
enable = true;
|
enable = true;
|
||||||
update_cwd = true;
|
update_root = true;
|
||||||
ignore_list = { };
|
ignore_list = { };
|
||||||
};
|
};
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
|
Loading…
Reference in New Issue
Block a user