├── init.lua ├── lua ├── plugins │ ├── themes.lua │ └── telescope.lua └── config │ └── lazy.lua └── lazy-lock.json /init.lua: -------------------------------------------------------------------------------- 1 | require("config.lazy") 2 | -------------------------------------------------------------------------------- /lua/plugins/themes.lua: -------------------------------------------------------------------------------- 1 | return { 2 | { 3 | "dracula/vim", 4 | lazy = false, -- Load the theme eagerly 5 | priority = 1000, -- Ensure it's loaded first 6 | config = function() 7 | vim.cmd.colorscheme("dracula") -- Set Dracula as the colorscheme 8 | end, 9 | }, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /lazy-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "lazy.nvim": { "branch": "main", "commit": "7c493713bc2cb392706866eeba53aaef6c8e9fc6" }, 3 | "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, 4 | "telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" }, 5 | "vim": { "branch": "master", "commit": "65f4225e0526516a67d56c8ac09925a209138e53" } 6 | } 7 | -------------------------------------------------------------------------------- /lua/plugins/telescope.lua: -------------------------------------------------------------------------------- 1 | -- File: lua/plugins/telescope.lua 2 | return { 3 | { 4 | "nvim-telescope/telescope.nvim", 5 | dependencies = { "nvim-lua/plenary.nvim" }, -- Ensure the plenary dependency is installed 6 | config = function() 7 | require("telescope").setup { 8 | defaults = { 9 | mappings = { 10 | i = { 11 | [""] = false, 12 | [""] = false, 13 | }, 14 | }, 15 | }, 16 | } 17 | end, 18 | cmd = "Telescope", 19 | keys = { 20 | { "ff", "Telescope find_files", desc = "Find Files" }, 21 | { "fg", "Telescope live_grep", desc = "Live Grep" }, 22 | { "fb", "Telescope buffers", desc = "Buffers" }, 23 | { "fh", "Telescope help_tags", desc = "Help Tags" }, 24 | }, 25 | }, 26 | } 27 | 28 | -------------------------------------------------------------------------------- /lua/config/lazy.lua: -------------------------------------------------------------------------------- 1 | -- Bootstrap lazy.nvim 2 | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 3 | if not (vim.uv or vim.loop).fs_stat(lazypath) then 4 | local lazyrepo = "https://github.com/folke/lazy.nvim.git" 5 | local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) 6 | if vim.v.shell_error ~= 0 then 7 | vim.api.nvim_echo({ 8 | { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, 9 | { out, "WarningMsg" }, 10 | { "\nPress any key to exit..." }, 11 | }, true, {}) 12 | vim.fn.getchar() 13 | os.exit(1) 14 | end 15 | end 16 | vim.opt.rtp:prepend(lazypath) 17 | 18 | -- Make sure to setup `mapleader` and `maplocalleader` before 19 | -- loading lazy.nvim so that mappings are correct. 20 | -- This is also a good place to setup other settings (vim.opt) 21 | vim.g.mapleader = " " 22 | vim.g.maplocalleader = "\\" 23 | 24 | -- Setup lazy.nvim 25 | require("lazy").setup({ 26 | spec = { 27 | -- import your plugins 28 | { import = "plugins" }, 29 | }, 30 | -- Configure any other settings here. See the documentation for more details. 31 | -- colorscheme that will be used when installing plugins. 32 | install = { colorscheme = { "habamax" } }, 33 | -- automatically check for plugin updates 34 | checker = { enabled = true }, 35 | }) 36 | --------------------------------------------------------------------------------