my-nvim-config/server/plugins.lua

52 lines
1.5 KiB
Lua

-- 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 plugins via lazy.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",
-- LSP related plugins
"neovim/nvim-lspconfig",
{
"hrsh7th/nvim-cmp", -- For LSP completion
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
}
},
-- Support programming terms
{ "psliwka/vim-dirtytalk", build = ":DirtytalkUpdate" },
-- vim-moonfly theme
{ "bluz71/vim-moonfly-colors", as = "moonfly" },
-- Automatically add bracket pairs
"windwp/nvim-autopairs",
-- Syntax highlighting for Caddyfile
"isobit/vim-caddyfile",
-- Syntax highlighting for Fish scripts
"khaveesh/vim-fish-syntax",
"kylechui/nvim-surround",
"junegunn/fzf",
"junegunn/fzf.vim",
})