Код: Выделить всё
vim.cmd("set expandtab")
vim.cmd("set tabstop=4")
vim.cmd("set softtabstop=4")
vim.cmd("set shiftwidth=4")
vim.g.mapleader = " "
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
local plugins = {
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{
'nvim-telescope/telescope.nvim', tag = '0.1.6',
dependencies = { 'nvim-lua/plenary.nvim' }
}
}
local opts = {}
vim.env.PATH = '/usr/bin:' .. vim.env.PATH
require("lazy").setup(plugins, opts)
local builtin = require("telescope.builtin")
vim.keymap.set('n', '', builtin.find_files, {})
vim.keymap.set('n', 'fg', builtin.live_grep, {})
require("catppuccin").setup()
vim.cmd.colorscheme "catppuccin"
Код: Выделить всё
==============================================================================
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- WARNING nvim-treesitter not found.
Checking external dependencies ~
- ERROR rg: not found. `live-grep` finder will not function without [BurntSushi/ripgrep](https://github.com/BurntSushi/ripgrep) installed.
- WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities
===== Installed extensions ===== ~
Код: Выделить всё
❯ which rg && which fdfind
/usr/bin/rg
/usr/bin/fdfind
Код: Выделить всё
/usr/bin:/app/bin:/usr/bin:/home/boibhav/.var/app/io.neovim.nvim/data/node/bin:/home/boibhav/.var/app/io.neovim.nvim/data/cargo/bin:/home/boibhav/.var/app/io.neovim.nvim/data/python/bin:/home
/boibhav/.var/app/io.neovim.nvim/data/gem/ruby/3.2.0/bin
Подробнее здесь: https://stackoverflow.com/questions/785 ... ipgrep-and