trixy/lua/plugins/lazy.lua

135 lines
2.8 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",
2024-02-06 00:47:31 +01:00
-- 'nyoom-engineering/oxocarbon.nvim',
'luckasRanarison/tree-sitter-hypr',
2023-07-29 15:00:35 +02:00
2024-02-04 00:25:41 +01:00
'lambdalisue/nerdfont.vim',
'gelguy/wilder.nvim',
2023-08-10 00:23:12 +02:00
-- it's annoying that w skips the whole word, so let's fix it
2023-07-29 15:00:35 +02:00
"bkad/camelcasemotion",
"lewis6991/gitsigns.nvim",
-- for faster file navigation
{
2024-02-06 00:47:31 +01:00
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
},
-- 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" },
},
{
2024-02-06 00:47:31 +01:00
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = {
"nvim-lua/plenary.nvim"
}
2023-07-31 23:57:35 +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
-- need that syntax highlight amirite
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate"
},
2024-02-04 00:25:41 +01:00
-- using lazy.nvim
2023-07-29 15:00:35 +02:00
{
2024-02-04 00:25:41 +01:00
"akinsho/bufferline.nvim",
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons',
config = function ()
vim.opt.termguicolors = true
require("bufferline").setup{}
end
2023-07-29 15:00:35 +02:00
},
-- 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",
2024-02-06 00:47:31 +01:00
branch = 'v3.x',
2023-07-29 15:00:35 +02:00
dependencies = {
-- LSP Support
2023-08-09 23:39:10 +02:00
{"neovim/nvim-lspconfig"}, -- Required
2024-02-04 00:25:41 +01:00
{ "williamboman/mason.nvim"}, -- Optional
2023-08-09 23:39:10 +02:00
{"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
}
},
2024-02-06 00:47:31 +01:00
{
'echasnovski/mini.nvim', version = false
},
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 })