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.sessionVariables = with pkgs; {
|
||||
EDITOR = "nvim";
|
||||
FZF_DEFAULT_COMMAND = "${ripgrep}/bin/rg --files --hidden";
|
||||
};
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
|
||||
home.file.".editorconfig".text = ''
|
||||
[*]
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
nvcode-color-schemes-vim
|
||||
editorconfig-nvim
|
||||
direnv-vim
|
||||
fzf-vim
|
||||
telescope-nvim
|
||||
lualine-nvim
|
||||
nvim-tree-lua
|
||||
toggleterm-nvim
|
||||
|
|
|
@ -33,7 +33,9 @@ vim.g.closetag_regions = {
|
|||
|
||||
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 {}
|
||||
map("n", "<C-p>", ":lua require('nvim-tree').toggle()<CR>", { noremap = true })
|
||||
|
||||
|
|
Loading…
Reference in a new issue