My nvim configuration
| 1 | require("lazy-bootstrap") |
| 2 | |
| 3 | -- These plugins don't need individual files |
| 4 | local plugins = { |
| 5 | { "ellisonleao/dotenv.nvim", opts = {} }, |
| 6 | { "folke/tokyonight.nvim" }, |
| 7 | { "mg979/vim-visual-multi" }, |
| 8 | { |
| 9 | "3rd/image.nvim", |
| 10 | opts = { |
| 11 | backend = "sixel", |
| 12 | processor = "magick_cli", |
| 13 | integrations = { |
| 14 | -- Disabled: sixel rendering under tmux throws on every cursor move |
| 15 | -- through a markdown file. Use :MarkdownPreview for rendered READMEs. |
| 16 | markdown = { |
| 17 | enabled = false, |
| 18 | only_render_image_at_cursor = true, |
| 19 | only_render_image_at_cursor_mode = "popup", |
| 20 | }, |
| 21 | }, |
| 22 | }, |
| 23 | }, |
| 24 | { |
| 25 | "mason-org/mason.nvim", |
| 26 | opts = {}, |
| 27 | }, |
| 28 | "tpope/vim-dispatch", |
| 29 | { "nvim-tree/nvim-web-devicons" }, |
| 30 | { "windwp/nvim-ts-autotag", event = "InsertEnter", opts = {} }, |
| 31 | { "neovim/nvim-lspconfig" }, |
| 32 | { "saecki/crates.nvim", tag = "stable", opts = {} }, |
| 33 | { "axkirillov/telescope-changed-files" }, |
| 34 | { "armannikoyan/rusty" }, |
| 35 | } |
| 36 | |
| 37 | -- Load plugins from lua/plugins |
| 38 | for _, file in ipairs(vim.fn.readdir(vim.fn.stdpath("config") .. "/lua/plugins")) do |
| 39 | if file:sub(-4) == ".lua" then |
| 40 | local mod_str = "plugins." .. file:sub(1, -5) |
| 41 | local ok, mod = pcall(require, mod_str) |
| 42 | if ok then |
| 43 | table.insert(plugins, mod) |
| 44 | end |
| 45 | end |
| 46 | end |
| 47 | |
| 48 | require("lazy").setup(plugins) |