trixy/lua/plugins/lazy.lua

161 lines
3.2 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-04 00:25:41 +01:00
"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
{
2024-02-04 00:25:41 +01:00
"rbong/vim-flog",
cmd = { "Flog", "Flogsplit", "Floggit" },
2023-08-09 23:39:10 +02:00
dependencies = {
2024-02-04 00:25:41 +01:00
"tpope/vim-fugitive",
2023-08-09 23:39:10 +02:00
},
},
2024-02-04 00:25:41 +01:00
'kassio/neoterm',
2023-07-29 15:00:35 +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",
-- very good file jumping system
2024-02-04 00:25:41 +01:00
{
"ThePrimeagen/harpoon",
dependencies = "nvim-lua/plenary.nvim",
version = "harpoon2"
},
-- arbitrarily comment
2023-07-29 15:00:35 +02:00
"tpope/vim-commentary",
"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",
},
},
-- 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
-- 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",
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
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
}
},
})
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 })