2024-03-22 13:02:23 -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,
|
|
|
|
})
|
2024-03-19 03:59:14 -05:00
|
|
|
end
|
2024-03-22 13:02:23 -05:00
|
|
|
vim.opt.rtp:prepend(lazypath)
|
2024-03-19 03:55:32 -05:00
|
|
|
|
2024-03-22 13:02:23 -05:00
|
|
|
-- Load plugins via lazy.nvim
|
|
|
|
require("lazy").setup({
|
2024-03-20 20:00:52 -05:00
|
|
|
-- Use lualine for statusbar
|
|
|
|
"nvim-lualine/lualine.nvim",
|
|
|
|
"nvim-tree/nvim-web-devicons",
|
2024-03-19 03:59:14 -05:00
|
|
|
-- 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",
|
2024-03-21 17:29:10 -05:00
|
|
|
-- LSP related plugins
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
"hrsh7th/nvim-cmp", -- For LSP completion
|
|
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
|
|
"hrsh7th/cmp-cmdline",
|
|
|
|
"hrsh7th/cmp-buffer",
|
|
|
|
"hrsh7th/cmp-path",
|
2024-03-19 03:59:14 -05:00
|
|
|
-- Support programming terms
|
2024-03-22 13:02:23 -05:00
|
|
|
{ "psliwka/vim-dirtytalk", build = ":DirtytalkUpdate" },
|
2024-03-19 03:59:14 -05:00
|
|
|
-- vim-moonfly theme
|
2024-03-22 13:02:23 -05:00
|
|
|
{ "bluz71/vim-moonfly-colors", as = "moonfly" },
|
2024-03-19 03:59:14 -05:00
|
|
|
-- Automatically add bracket pairs
|
|
|
|
"windwp/nvim-autopairs",
|
2024-03-19 15:39:14 -05:00
|
|
|
-- Syntax highlighting for Caddyfile
|
|
|
|
"isobit/vim-caddyfile",
|
2024-03-19 03:59:14 -05:00
|
|
|
-- Syntax highlighting for Fish scripts
|
|
|
|
"khaveesh/vim-fish-syntax",
|
2024-03-20 17:55:18 -05:00
|
|
|
"kylechui/nvim-surround",
|
2024-03-21 17:29:10 -05:00
|
|
|
"junegunn/fzf",
|
|
|
|
"junegunn/fzf.vim",
|
2024-03-22 13:02:23 -05:00
|
|
|
})
|
2024-03-19 15:39:14 -05:00
|
|
|
|