/
as.lizin
/
nvim
Обзор
Документация
Войти
/
as.lizin
/
nvim
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lua/plugins/init.lua
329 строк
7 KB
Aleksandr Lizin
Add Midnight Commander inspiration to README
04 май 2026, 23:13
04 май 2026, 23:13
ea44995
Код
Авторство
О чём код?
return { { lazy = true, "nvim-lua/plenary.nvim" }, { "EdenEast/nightfox.nvim", priority = 1000, config = true, }, { "folke/snacks.nvim", priority = 1000, lazy = false, opts = function() return require "plugins.configs.snacks" end, config = function(_, opts) require("snacks").setup(opts) end, }, { "nvim-tree/nvim-tree.lua", cmd = { "NvimTreeToggle", "NvimTreeFocus" }, config = function(_, opts) require "plugins.configs.nvimtree" end, }, { "nvim-tree/nvim-web-devicons", opts = {}, }, { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", config = function() require "plugins.configs.treesitter" end, }, { "akinsho/bufferline.nvim", event = "BufReadPre", opts = require "plugins.configs.bufferline", }, { "echasnovski/mini.statusline", config = function() require("mini.statusline").setup { set_vim_settings = false } end, }, -- we use cmp plugin only when in insert mode -- so lets lazyload it at InsertEnter event, to know all the events check h-events -- completion , now all of these plugins are dependent on cmp, we load them after cmp { "hrsh7th/nvim-cmp", event = "InsertEnter", dependencies = { -- cmp sources "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lsp", "saadparwaiz1/cmp_luasnip", "hrsh7th/cmp-nvim-lua", --list of default snippets "rafamadriz/friendly-snippets", -- snippets engine { "L3MON4D3/LuaSnip", config = function() require("luasnip.loaders.from_vscode").lazy_load() end, }, -- autopairs , autocompletes ()[] etc { "windwp/nvim-autopairs", config = function() require("nvim-autopairs").setup() local cmp_autopairs = require "nvim-autopairs.completion.cmp" local cmp = require "cmp" cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done()) end, }, }, -- made opts a function cuz cmp config calls cmp module -- and we lazyloaded cmp so we dont want that file to be read on startup! opts = function() return require "plugins.configs.cmp" end, }, { "williamboman/mason.nvim", build = ":MasonUpdate", cmd = { "Mason", "MasonInstall" }, opts = {}, }, { "neovim/nvim-lspconfig", event = { "BufReadPre", "BufNewFile" }, config = function() require "plugins.configs.lspconfig" end, }, { "stevearc/conform.nvim", lazy = true, opts = require "plugins.configs.conform", }, { "lukas-reineke/indent-blankline.nvim", event = { "BufReadPre", "BufNewFile" }, config = function() require("ibl").setup { indent = { char = "│" }, scope = { char = "│", highlight = "Comment" }, } end, }, -- files finder etc { "nvim-telescope/telescope.nvim", dependencies = { { "nvim-telescope/telescope-live-grep-args.nvim" , -- This will not install any breaking changes. -- For major updates, this must be adjusted manually. version = "^1.0.0", }, }, cmd = "Telescope", opts = require "plugins.configs.telescope", config = function() local telescope = require("telescope") -- first setup telescope telescope.setup({ -- your config }) -- then load the extension telescope.load_extension("live_grep_args") end }, { "lewis6991/gitsigns.nvim", event = { "BufReadPre", "BufNewFile" }, opts = {}, }, { "NvChad/base46", branch = "v2.0", build = function() require("base46").load_all_highlights() end, }, { "sindrets/diffview.nvim", config = function(_, opts) require "plugins.configs.diffview" end, }, { 'akinsho/toggleterm.nvim', config = function(_, opts) require "plugins.configs.toggleterm" end, }, { -- Test interactions "nvim-neotest/neotest", dependencies = { "nvim-neotest/nvim-nio", 'nvim-lua/plenary.nvim', "nvim-treesitter/nvim-treesitter", "antoinemadec/FixCursorHold.nvim", "Shatur/neovim-tasks", -- "amar-laksh/neotest-catch2", -- 'nvim-neotest/neotest-python', 'alfaix/neotest-gtest', "maggflor/neotest-boost-test" -- 'rosstang/neotest-catch2' }, config = function() require "plugins.configs.neotest" end, }, { "jay-babu/mason-nvim-dap.nvim", event = "VeryLazy", dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap", }, opts = { handlers = {} }, config = function(_, opts) require("mason-nvim-dap").setup({ ensure_installed = { "codelldb" }, handlers = {} }) end }, { "mfussenegger/nvim-dap", dependencies = { }, }, { "rcarriga/nvim-dap-ui", event = "VeryLazy", dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" }, config = function() require "plugins.configs.nvim-dap-ui" end }, { 'Civitasv/cmake-tools.nvim', config = function() require "plugins.configs.cmake-tools" end }, { "FabijanZulj/blame.nvim", lazy = false, config = function() require('blame').setup {} end, }, { "ibhagwan/fzf-lua", lazy = false, config = function() require('fzf-lua').setup({{"default"},winopts={fullscreen=true}}) end, }, { "ThePrimeagen/harpoon", branch = "harpoon2", dependencies = { "nvim-lua/plenary.nvim" }, config = function() require "plugins.configs.harpoon" end }, { "folke/snacks.nvim", priority = 1000, lazy = false, opts = function() return require "plugins.configs.snacks" end, }, { "sogimu/text_selection_highlighting", lazy = false, config = function() require("text_selection_highlighting").setup() end, }, { "sogimu/nvim-tree-search", lazy = true, }, { "folke/flash.nvim", event = "VeryLazy", opts = {}, keys = { { "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash", }, { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter", }, { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash", }, { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search", }, { "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search", }, }, }, }