This commit is contained in:
maciejrusek
2026-02-25 21:56:27 +01:00
commit fc57c9d344
4 changed files with 53 additions and 0 deletions

27
lua/config/lazy.lua Normal file
View File

@@ -0,0 +1,27 @@
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("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = true },
})

15
lua/plugins/fzf-lua.lua Normal file
View File

@@ -0,0 +1,15 @@
return {
"ibhagwan/fzf-lua",
-- optional for icon support
dependencies = { "nvim-tree/nvim-web-devicons" },
-- or if using mini.icons/mini.nvim
-- dependencies = { "nvim-mini/mini.icons" },
---@module "fzf-lua"
---@type fzf-lua.Config|{}
---@diagnostic disable: missing-fields
opts = {},
---@diagnostic enable: missing-fields
keys = {
{ "<leader>ff", function() require("fzf-lua").files() end, desc = "Find files" },
}
}