my-nvim-config/laptop/config/plugins.lua

89 lines
2.6 KiB
Lua
Raw Normal View History

2024-03-26 16:47:12 -05:00
-- Automatically bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
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,
})
end
vim.opt.rtp:prepend(lazypath)
-- Load plugin via paq-nvim
require("lazy").setup(
{
-- Use lualine for statusbar
"nvim-lualine/lualine.nvim",
"nvim-tree/nvim-web-devicons",
-- Auto commenting per filetype
"numToStr/Comment.nvim",
-- Give option to save files using sudo, if needed
"lambdalisue/suda.vim",
-- Auto toggle for number mode when vim isn't focused
"sitiom/nvim-numbertoggle",
-- Plugin for lean
"julian/lean.nvim",
-- Treesitter
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" }
},
2024-03-26 16:47:12 -05:00
-- LSP related plugins
"neovim/nvim-lspconfig",
"nvim-lua/plenary.nvim",
{
"hrsh7th/nvim-cmp", -- For LSP completion
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"micangl/cmp-vimtex",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
}
},
"SirVer/ultisnips", -- For snippets
-- Support programming terms
{ "psliwka/vim-dirtytalk", build = ":DirtytalkUpdate" },
2024-03-26 16:47:12 -05:00
-- vim-moonfly theme
{ "bluz71/vim-moonfly-colors", as = "moonfly" },
2024-03-26 16:47:12 -05:00
-- Rust tools
2024-04-01 02:32:27 -05:00
{
"mrcjkb/rustaceanvim",
version = "^4",
ft = { "rust" },
},
2024-03-26 16:47:12 -05:00
-- Automatically add bracket pairs
"windwp/nvim-autopairs",
-- Syntax highlighting for Fish scripts
"khaveesh/vim-fish-syntax",
-- Plugin for LaTeX
"lervag/vimtex",
-- Formatter
"stevearc/conform.nvim",
"kylechui/nvim-surround",
2024-03-28 01:57:58 -05:00
"ibhagwan/fzf-lua",
2024-03-26 17:14:42 -05:00
"karb94/neoscroll.nvim",
"hiphish/rainbow-delimiters.nvim",
2024-03-28 00:08:00 -05:00
"fei6409/log-highlight.nvim",
2024-06-03 19:51:20 -05:00
{
"linrongbin16/lsp-progress.nvim",
event = "LspAttach",
},
{
"felpafel/inlay-hint.nvim",
version = "1",
2024-06-03 19:51:20 -05:00
event = "LspAttach",
config = true,
}
2024-03-26 16:47:12 -05:00
},
{
lockfile = vim.fn.stdpath("config") .. "/config/lazy-lock.json",
install = { missing = true },
}
)