diff options
author | pryazha <pryadeiniv@mail.ru> | 2025-06-15 16:06:11 +0500 |
---|---|---|
committer | pryazha <pryadeiniv@mail.ru> | 2025-06-15 16:06:11 +0500 |
commit | 55d0510313c623a5d9070b7ddc88693a63ca5c2b (patch) | |
tree | 9d2308af32704325505f0a18e95365e37f004214 /.config/nvim/lua/plugins.lua | |
parent | 01180bc8d01a3511c355567ac5734cac6e132ab5 (diff) |
some scripts, bash, tmux changes
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r-- | .config/nvim/lua/plugins.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua new file mode 100644 index 0000000..79b5dec --- /dev/null +++ b/.config/nvim/lua/plugins.lua @@ -0,0 +1,25 @@ +-- bootstrap lazy.nvim +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = "https://github.com/folke/lazy.nvim.git" + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) + if vim.v.shell_error ~= 0 then + vim.api.nvim_echo({ + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, + { out, "WarningMsg" }, + { "\nPress any key to exit..." }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end +end +vim.opt.rtp:prepend(lazypath) + +require("options") + +-- setup lazy.nvim +require("lazy").setup({ + { "ibhagwan/fzf-lua" } +}) + +vim.keymap.set("n", "<leader>f", ":FzfLua files<cr>") |