Switch to LazyVim.

This commit is contained in:
Bartek Stalewski 2025-01-28 17:20:49 +01:00
parent 9eeb3ed88e
commit 5acb10f0aa
No known key found for this signature in database
24 changed files with 626 additions and 91 deletions

View file

@ -1,71 +1,124 @@
return {
{ "MagickDuck/grug-far.nvim", enabled = false },
{ "catppuccin/nvim", enabled = false },
{ "folke/persistence.nvim", enabled = false },
{ "folke/todo-comments.nvim", enabled = false },
{ "folke/tokyonight.nvim", enabled = false },
{ "folke/trouble.nvim", enabled = false },
{ "windwp/nvim-ts-autotag", enabled = false },
{
"nvim-lua/plenary.nvim",
{
"nvchad/ui",
config = function()
require "nvchad"
end
"folke/snacks.nvim",
opts = {
dashboard = { enabled = false },
},
{
"nvchad/base46",
lazy = true,
build = function()
require("base46").load_all_highlights()
end,
},
"nvchad/volt",
},
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
config = function()
require "configs.conform"
end,
"loctvl842/monokai-pro.nvim",
opts = {
filter = "classic",
},
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "monokai-pro",
},
},
{
"nvim-lualine/lualine.nvim",
opts = {
options = {
theme = "powerline",
section_separators = "",
component_separators = "",
},
sections = {
lualine_c = {
{
"diagnostics",
symbols = {
error = LazyVim.config.icons.diagnostics.Error,
warn = LazyVim.config.icons.diagnostics.Warn,
info = LazyVim.config.icons.diagnostics.Info,
hint = LazyVim.config.icons.diagnostics.Hint,
},
},
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ "filename", file_status = true, path = 1 },
},
lualine_x = {
{
"diff",
symbols = {
added = LazyVim.config.icons.git.added,
modified = LazyVim.config.icons.git.modified,
removed = LazyVim.config.icons.git.removed,
},
},
},
lualine_z = {},
},
},
},
{
"nvim-neo-tree/neo-tree.nvim",
keys = {
{
"<leader>e",
function()
require("neo-tree.command").execute({ toggle = true, dir = vim.uv.cwd() })
end,
desc = "explorer (cwd)",
remap = true,
},
{
"<leader>E",
function()
require("neo-tree.command").execute({ toggle = true, dir = LazyVim.root() })
end,
desc = "explorer (root)",
remap = true,
},
},
opts = {
filesystem = {
filtered_items = {
visible = true,
},
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
opts = function(_, opts)
opts.ensure_installed = {
"bash",
"diff",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"terraform",
"vim",
}
end,
},
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"lua-language-server",
"terraform-ls",
"tflint",
},
},
},
{
"neovim/nvim-lspconfig",
config = function()
require "configs.lspconfig"
end,
},
}
-- These are some examples, uncomment them if you want to see them work!
-- Install a plugin
-- {
-- "max397574/better-escape.nvim",
-- event = "InsertEnter",
-- config = function()
-- require("better_escape").setup()
-- end
-- },
-- To make a plugin not be loaded
-- {
-- "NvChad/nvim-colorizer.lua",
-- enabled = false
-- },
-- All NvChad plugins are lazy-loaded by default
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
-- {
-- "mg979/vim-visual-multi",
-- lazy = false,
-- }