nvim/lua/plugins/init.lua

254 lines
7.2 KiB
Lua
Raw Normal View History

2025-05-13 16:00:41 +02:00
return {
2025-05-13 21:37:22 +02:00
--# plenary, handles multitasking and program effeciency
2025-05-13 16:00:41 +02:00
"nvim-lua/plenary.nvim",
2025-05-13 21:37:22 +02:00
--# telescope, open a windows to fuzzy find in for files or strings in files
2025-05-13 16:00:41 +02:00
{
'nvim-telescope/telescope.nvim',
tag = '0.1.8',
dependencies = { 'nvim-lua/plenary.nvim' }
},
2025-05-13 21:37:22 +02:00
--# treesitter, uses language parsers for highlighting
2025-05-13 16:00:41 +02:00
'nvim-treesitter/nvim-treesitter',
2025-05-13 21:37:22 +02:00
--# lualine, creates nice looking status bar
2025-05-13 16:00:41 +02:00
'nvim-lualine/lualine.nvim',
2025-05-13 21:37:22 +02:00
--# web-devicons, generates icons for nerd font
2025-05-13 16:00:41 +02:00
{
"nvim-tree/nvim-web-devicons",
opts = {}
},
2025-05-13 21:37:22 +02:00
--# nvim-tree, a filebrowser
{
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
},
--# gruvbox, a style
'morhetz/gruvbox',
--# fugitive, a git wrapper
2025-05-13 16:00:41 +02:00
'tpope/vim-fugitive',
2025-05-13 21:37:22 +02:00
--# tagbar, opens a view to see properties and methods of file
2025-05-13 16:00:41 +02:00
'majutsushi/tagbar',
2025-05-13 21:37:22 +02:00
--# gitgutter, shows git info in gutter
2025-05-13 16:00:41 +02:00
'airblade/vim-gitgutter',
2025-05-13 21:37:22 +02:00
--# deadcolumn, shows line limit when coming close
2025-05-13 16:00:41 +02:00
'Bekaboo/deadcolumn.nvim',
2025-05-13 21:37:22 +02:00
--# colorizer, show hex and other colors e.g: #ADADBF
2025-09-25 10:51:18 +02:00
'NiklasV1/nvim-colorizer.lua',
2025-05-13 21:37:22 +02:00
--# SyntaxAttr, display syntax highlighting
2025-05-13 16:00:41 +02:00
'vim-scripts/SyntaxAttr.vim',
2025-05-13 21:37:22 +02:00
--# rainbow-delimiters, colors braces etc
2025-05-13 16:00:41 +02:00
'HiPhish/rainbow-delimiters.nvim',
2025-05-13 21:37:22 +02:00
--# marks, shows where marks are placed in gutter
2025-05-13 16:00:41 +02:00
'chentoast/marks.nvim',
2025-05-13 21:37:22 +02:00
--# indentwise, helps with indentation formatting
2025-05-13 16:00:41 +02:00
"jeetsukumaran/vim-indentwise",
2025-05-22 12:58:27 +02:00
--# local ai, needs llama.cpp which should be built using CUDA, see https://github.com/ggml-org/llama.cpp
2025-06-05 22:06:17 +02:00
{
'ggml-org/llama.vim',
init = function()
vim.g.llama_config = {
keymap_accept_line = "<Tab>",
keymap_accept_full = "<S-Tab>",
}
end,
},
2025-05-22 12:58:27 +02:00
--# indent-blankline, shows indentation
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
2025-10-22 14:05:57 +02:00
--commit = "29be0919b91fb59eca9e90690d76014233392bef",
2025-05-22 12:58:27 +02:00
},
2025-10-22 14:05:57 +02:00
-- lsp stuff
2025-05-21 14:54:28 +02:00
{
2025-10-22 14:05:57 +02:00
"mason-org/mason.nvim",
opts = {}
},
{
"mason-org/mason-lspconfig.nvim",
opts = {},
dependencies = {
{ "mason-org/mason.nvim", opts = {} },
"neovim/nvim-lspconfig",
},
},
-- show warning and errors
{
"folke/trouble.nvim",
opts = {}, -- for default options, refer to the configuration section for custom setup.
cmd = "Trouble",
keys = {
{
"<leader>xx",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
},
{
"<leader>xX",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "Buffer Diagnostics (Trouble)",
},
{
"<leader>cs",
"<cmd>Trouble symbols toggle focus=false<cr>",
desc = "Symbols (Trouble)",
},
{
"<leader>cl",
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
desc = "LSP Definitions / references / ... (Trouble)",
},
{
"<leader>xL",
"<cmd>Trouble loclist toggle<cr>",
desc = "Location List (Trouble)",
},
{
"<leader>xQ",
"<cmd>Trouble qflist toggle<cr>",
desc = "Quickfix List (Trouble)",
},
},
2025-05-21 14:54:28 +02:00
},
2025-10-22 14:05:57 +02:00
2025-09-25 15:16:23 +02:00
-- Add scrollbar
'petertriho/nvim-scrollbar',
-- Show shortcut keys
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
},
-- formatting!
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = { lua = { "stylua" } },
},
},
-- context menu
{
"nvzone/volt",
lazy = true
},
{
"nvzone/menu",
lazy = true
},
-- color picker
{
"nvzone/minty",
cmd = { "Shades", "Huefy" },
},
-- undo tree
{
"jiaoshijie/undotree",
dependencies = { "nvim-lua/plenary.nvim" },
---@module 'undotree.collector'
---@type UndoTreeCollector.Opts
opts = {
-- your options
},
keys = { -- load the plugin only when using it's keybinding:
{ "<leader>u", "<cmd>lua require('undotree').toggle()<cr>" },
},
},
{
'nvimdev/lspsaga.nvim',
config = function()
require('lspsaga').setup({})
end,
dependencies = {
'nvim-treesitter/nvim-treesitter', -- optional
'nvim-tree/nvim-web-devicons', -- optional
}
},
2025-09-25 16:52:28 +02:00
-- mini icons
{
'nvim-mini/mini.nvim',
version = '*'
},
2025-09-25 17:00:47 +02:00
-- custom welcome screen
{
"goolord/alpha-nvim",
config = function ()
require'alpha'.setup(require'alpha.themes.dashboard'.config)
end,
},
2025-10-22 14:05:57 +02:00
-- AI
-- {
-- "supermaven-inc/supermaven-nvim",
-- config = function()
-- require("supermaven-nvim").setup({})
-- end,
-- },
2025-09-25 15:16:23 +02:00
}
--"williamboman/mason.nvim",
--"williamboman/mason-lspconfig.nvim",
--"neovim/nvim-lspconfig",
--# neo-tree, a filebrowser
--{
-- "nvim-neo-tree/neo-tree.nvim",
-- keys = {
-- { "<leader>ft", "<cmd>Neotree toggle<cr>", desc = "NeoTree" },
-- },
-- opts = {},
--},
---- ui plugin is a collection of many UI modules like statusline, tabline, cheatsheet, nvdash and much more!
--"nvim-lua/plenary.nvim",
--{
-- "nvim-tree/nvim-web-devicons",
-- lazy = true
--},
--{
-- "nvchad/ui",
-- config = function()
-- require "nvchad"
-- end
--},
--{
-- "nvchad/base46",
-- lazy = true,
-- build = function()
-- require("base46").load_all_highlights()
-- end,
--},
2025-09-25 10:51:18 +02:00
--{
-- "dundalek/lazy-lsp.nvim",
-- commit="0ccc0238be37351d53e64c2f6c7f9e106e2bdb68",
-- dependencies = {
-- "neovim/nvim-lspconfig",
-- {"VonHeikemen/lsp-zero.nvim", branch = "v3.x"},
-- "hrsh7th/cmp-nvim-lsp",
-- "hrsh7th/nvim-cmp",
-- },
-- config = function()
-- local lsp_zero = require("lsp-zero")
-- lsp_zero.on_attach(function(client, bufnr)
-- -- see :help lsp-zero-keybindings to learn the available actions
-- lsp_zero.default_keymaps({
-- buffer = bufnr,
-- preserve_mappings = false
-- })
-- end)
-- require("lazy-lsp").setup {}
-- end,
--},