trixy/lua/plugins/lazy.lua

249 lines
5.3 KiB
Lua
Raw Normal View History

2023-07-29 15:00:35 +02:00
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2023-07-29 15:00:35 +02:00
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
2023-07-29 15:00:35 +02:00
end
2023-07-29 15:00:35 +02:00
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
-- colorscheme
"EdenEast/nightfox.nvim",
2023-07-29 15:00:35 +02:00
2023-08-10 00:23:12 +02:00
{
'gelguy/wilder.nvim',
config = function()
local wilder = require('wilder')
wilder.setup({modes = {':', '/', '?'}})
wilder.set_option('renderer', wilder.renderer_mux({
[':'] = wilder.popupmenu_renderer({
highlighter = wilder.basic_highlighter(),
}),
['/'] = wilder.wildmenu_renderer({
highlighter = wilder.basic_highlighter(),
}),
}))
wilder.set_option('renderer', wilder.popupmenu_renderer(
wilder.popupmenu_palette_theme({
-- 'single', 'double', 'rounded' or 'solid'
-- can also be a list of 8 characters, see :h wilder#popupmenu_palette_theme() for more details
border = 'rounded',
max_height = '75%', -- max height of the palette
min_height = 0, -- set to the same as 'max_height' for a fixed height window
prompt_position = 'top', -- 'top' or 'bottom' to set the location of the prompt
reverse = 0, -- set to 1 to reverse the order of the list, use in combination with 'prompt_position'
})
))
end,
},
2023-08-09 23:39:10 +02:00
-- Journaling and notes! with a calendar !
{
"renerocksai/telekasten.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
"renerocksai/calendar-vim"
},
config = function ()
require("telekasten").setup({
home = vim.fn.expand("~/zettelkasten"), -- Put the name of your notes directory here
})
end
},
-- Focus more !
2023-07-29 15:00:35 +02:00
"folke/twilight.nvim",
"folke/zen-mode.nvim",
-- it's annoying that w skips the whole word, so let's fix it
2023-07-29 15:00:35 +02:00
"bkad/camelcasemotion",
-- very good file jumping system
"ThePrimeagen/harpoon",
-- arbitrarily comment
2023-07-29 15:00:35 +02:00
"tpope/vim-commentary",
-- this one is just fun
2023-07-30 09:07:54 +02:00
"eandrju/cellular-automaton.nvim",
-- indicate what has changed in git repo
"lewis6991/gitsigns.nvim",
-- like magit for emacs
{
"NeogitOrg/neogit",
dependencies = "nvim-lua/plenary.nvim",
config = true
},
-- for faster file navigation
{
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
},
-- Debugger UI
{
"rcarriga/nvim-dap-ui",
dependencies = {"mfussenegger/nvim-dap"}
},
-- Surround text with quotes etc
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
config = function()
require("nvim-surround").setup()
end
},
2023-07-31 23:57:35 +02:00
-- highlight current scope
2023-07-31 23:57:35 +02:00
{
"shellRaining/hlchunk.nvim",
event = { "UIEnter" },
},
-- Automagically close () "" and so on
2023-07-31 23:57:35 +02:00
{
'windwp/nvim-autopairs',
event = "InsertEnter",
opts = {} -- this is equalent to setup({}) function
},
2023-07-30 09:07:54 +02:00
-- better status line than stock one
2023-07-30 09:07:54 +02:00
{
"nvim-lualine/lualine.nvim",
dependencies =
{
"nvim-tree/nvim-web-devicons",
opt = true
}
},
2023-07-29 15:00:35 +02:00
{
"NvChad/nvim-colorizer.lua",
config = function()
require('colorizer').setup()
end,
},
-- LEARN HJKL DAMMIT
2023-07-29 15:00:35 +02:00
{
"m4xshen/hardtime.nvim",
lazy = true,
opts = {}
},
-- dashboard and start page
2023-07-29 15:00:35 +02:00
{
"willothy/veil.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope-file-browser.nvim"
},
},
-- size does not matter
{
2023-08-09 23:39:10 +02:00
"echasnovski/mini.nvim",
2023-07-29 15:00:35 +02:00
version = false,
},
-- need that syntax highlight amirite
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate"
},
-- the name says it all
{
"SirVer/ultisnips",
lazy = true
},
-- That shmexy latex plugin
{
"lervag/vimtex",
lazy = true
},
-- Cool screensaver !!
{
"folke/drop.nvim",
event = "VimEnter",
},
-- this is pure magic, i love this guy
2023-07-29 15:00:35 +02:00
{
2023-08-09 23:39:10 +02:00
"VonHeikemen/lsp-zero.nvim",
2023-07-29 15:00:35 +02:00
branch = 'v2.x',
dependencies = {
-- LSP Support
2023-08-09 23:39:10 +02:00
{"neovim/nvim-lspconfig"}, -- Required
{"williamboman/mason.nvim"}, -- Optional
{"williamboman/mason-lspconfig.nvim"}, -- Optional
2023-07-29 15:00:35 +02:00
-- Autocompletion
2023-08-09 23:39:10 +02:00
{"hrsh7th/nvim-cmp"}, -- Required
{"hrsh7th/cmp-nvim-lsp"}, -- Required
{"L3MON4D3/LuaSnip"}, -- Required
2023-07-29 15:00:35 +02:00
}
},
})
vim.opt.laststatus=2
vim.keymap.set('i', '<Tab>', [[pumvisible() ? "\<C-n>" : "\<Tab>"]], { expr = true })
vim.keymap.set('i', '<S-Tab>', [[pumvisible() ? "\<C-p>" : "\<S-Tab>"]], { expr = true })