nvim/lua/plugins/init.lua
Raoul Branten d7a21ce1a5 Use llama
2026-01-15 13:09:45 +01:00

264 lines
7.2 KiB
Lua

return {
--# plenary, handles multitasking and program effeciency
"nvim-lua/plenary.nvim",
--# telescope, open a windows to fuzzy find in for files or strings in files
{
'nvim-telescope/telescope.nvim',
tag = '0.1.8',
dependencies = { 'nvim-lua/plenary.nvim' }
},
{
"nvim-telescope/telescope-fzf-native.nvim",
build = "make",
config = function()
require("telescope").load_extension("fzf")
end,
},
{
"nvim-telescope/telescope-ui-select.nvim",
config = function()
require("telescope").load_extension("ui-select")
end,
},
--# treesitter, uses language parsers for highlighting
'nvim-treesitter/nvim-treesitter',
--# lualine, creates nice looking status bar
'nvim-lualine/lualine.nvim',
--# web-devicons, generates icons for nerd font
{
"nvim-tree/nvim-web-devicons",
opts = {}
},
--# 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
'tpope/vim-fugitive',
--# tagbar, opens a view to see properties and methods of file
'majutsushi/tagbar',
--# gitgutter, shows git info in gutter
'airblade/vim-gitgutter',
--# deadcolumn, shows line limit when coming close
'Bekaboo/deadcolumn.nvim',
--# colorizer, show hex and other colors e.g: #ADADBF
'NiklasV1/nvim-colorizer.lua',
--# SyntaxAttr, display syntax highlighting
'vim-scripts/SyntaxAttr.vim',
--# rainbow-delimiters, colors braces etc
'HiPhish/rainbow-delimiters.nvim',
--# marks, shows where marks are placed in gutter
'chentoast/marks.nvim',
--# indentwise, helps with indentation formatting
"jeetsukumaran/vim-indentwise",
--# local ai, needs llama.cpp which should be built using CUDA, see https://github.com/ggml-org/llama.cpp
{
'ggml-org/llama.vim',
init = function()
vim.g.llama_config = {
keymap_fim_accept_line = "<Tab>",
keymap_fim_accept_full = "<S-Tab>",
}
end,
},
--# indent-blankline, shows indentation
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
--commit = "29be0919b91fb59eca9e90690d76014233392bef",
},
-- lsp stuff
{
"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)",
},
},
},
-- quick commenting
{
'numToStr/Comment.nvim',
opts = {
-- add any options here
}
},
-- 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({
lightbulb = {
enable = false,
},
})
end,
dependencies = {
'nvim-treesitter/nvim-treesitter', -- optional
'nvim-tree/nvim-web-devicons', -- optional
}
},
-- mini icons
{
'nvim-mini/mini.nvim',
version = '*'
},
-- custom welcome screen
{
"goolord/alpha-nvim",
config = function ()
require'alpha'.setup(require'alpha.themes.dashboard'.config)
end,
},
-- floating terminal
{
'akinsho/toggleterm.nvim',
version = "*",
config = true
},
-- Completion framework
{
"hrsh7th/nvim-cmp",
dependencies = {
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip",
},
config = function()
require("config.plugin.cmp")
end,
},
-- Improves tabs
{
"akinsho/bufferline.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("bufferline").setup({
options = {
mode = "tabs",
separator_style = "slant",
}
})
end,
},
-- AI
{
'milanglacier/minuet-ai.nvim',
dependencies = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
config = function()
require('minuet').setup {
-- Your configuration options here
}
end,
},
}