feat(neovim): replace fzf-vim with telescope.nvim
This commit is contained in:
parent
3133316f6e
commit
2caf062e8f
|
@ -5,10 +5,7 @@
|
||||||
|
|
||||||
home.packages = with pkgs; [ fzf ripgrep ];
|
home.packages = with pkgs; [ fzf ripgrep ];
|
||||||
|
|
||||||
home.sessionVariables = with pkgs; {
|
home.sessionVariables.EDITOR = "nvim";
|
||||||
EDITOR = "nvim";
|
|
||||||
FZF_DEFAULT_COMMAND = "${ripgrep}/bin/rg --files --hidden";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".editorconfig".text = ''
|
home.file.".editorconfig".text = ''
|
||||||
[*]
|
[*]
|
||||||
|
|
|
@ -17,7 +17,7 @@ in {
|
||||||
nvcode-color-schemes-vim
|
nvcode-color-schemes-vim
|
||||||
editorconfig-nvim
|
editorconfig-nvim
|
||||||
direnv-vim
|
direnv-vim
|
||||||
fzf-vim
|
telescope-nvim
|
||||||
lualine-nvim
|
lualine-nvim
|
||||||
nvim-tree-lua
|
nvim-tree-lua
|
||||||
toggleterm-nvim
|
toggleterm-nvim
|
||||||
|
|
|
@ -33,7 +33,9 @@ vim.g.closetag_regions = {
|
||||||
|
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
|
|
||||||
map("", ";", ":Files<CR>", {})
|
map("n", ";", ":lua require('telescope.builtin').find_files()<CR>", { noremap = true })
|
||||||
|
map("n", ",", ":lua require('telescope.builtin').live_grep()<CR>", { noremap = true })
|
||||||
|
|
||||||
require("nvim-tree").setup {}
|
require("nvim-tree").setup {}
|
||||||
map("n", "<C-p>", ":lua require('nvim-tree').toggle()<CR>", { noremap = true })
|
map("n", "<C-p>", ":lua require('nvim-tree').toggle()<CR>", { noremap = true })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue