neovim-config/lua/plugins/init.lua

83 lines
2.2 KiB
Lua
Raw Normal View History

2023-09-02 16:48:46 +00:00
return {
"folke/neodev.nvim",
"folke/which-key.nvim",
{ "folke/neoconf.nvim", cmd = "Neoconf" },
2023-09-02 17:07:06 +00:00
"tpope/vim-fugitive",
"tpope/vim-rhubarb",
2023-09-02 16:48:46 +00:00
-- Detect tabstop and shiftwidth automatically
2023-09-02 17:07:06 +00:00
"tpope/vim-sleuth",
2023-09-02 16:48:46 +00:00
{
-- LSP Configuration & Plugins
2023-09-02 17:07:06 +00:00
"neovim/nvim-lspconfig",
2023-09-02 16:48:46 +00:00
dependencies = {
-- Automatically install LSPs to stdpath for neovim
2023-09-02 17:07:06 +00:00
{ "williamboman/mason.nvim", config = true },
"williamboman/mason-lspconfig.nvim",
2023-09-02 16:48:46 +00:00
-- Useful status updates for LSP
2023-09-02 17:07:06 +00:00
-- NOTE: `opts = {}` is the same as calling `require("fidget").setup({})`
{ "j-hui/fidget.nvim", tag = "legacy", opts = {} },
2023-09-02 16:48:46 +00:00
-- Additional lua configuration, makes nvim stuff amazing!
2023-09-02 17:07:06 +00:00
"folke/neodev.nvim",
2023-09-02 16:48:46 +00:00
},
},
{
-- Autocompletion
2023-09-02 17:07:06 +00:00
"hrsh7th/nvim-cmp",
2023-09-02 16:48:46 +00:00
dependencies = {
-- Snippet Engine & its associated nvim-cmp source
2023-09-02 17:07:06 +00:00
"L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip",
2023-09-02 16:48:46 +00:00
-- Adds LSP completion capabilities
2023-09-02 17:07:06 +00:00
"hrsh7th/cmp-nvim-lsp",
2023-09-02 16:48:46 +00:00
-- Adds a number of user-friendly snippets
2023-09-02 17:07:06 +00:00
"rafamadriz/friendly-snippets",
2023-09-02 16:48:46 +00:00
},
},
-- Useful plugin to show you pending keybinds.
2023-09-02 17:07:06 +00:00
{ "folke/which-key.nvim", opts = {} },
2023-09-02 16:48:46 +00:00
{
-- Add indentation guides even on blank lines
2023-09-02 17:07:06 +00:00
"lukas-reineke/indent-blankline.nvim",
2023-09-02 16:48:46 +00:00
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help indent_blankline.txt`
opts = {
2023-09-02 17:07:06 +00:00
char = "",
2023-09-02 16:48:46 +00:00
show_trailing_blankline_indent = false,
},
},
-- "gc" to comment visual regions/lines
2023-09-02 17:07:06 +00:00
{ "numToStr/Comment.nvim", opts = {} },
2023-09-02 16:48:46 +00:00
-- Fuzzy Finder (files, lsp, etc)
{
2023-09-02 17:07:06 +00:00
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
2023-09-02 16:48:46 +00:00
dependencies = {
2023-09-02 17:07:06 +00:00
"nvim-lua/plenary.nvim",
2023-09-02 16:48:46 +00:00
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
-- Only load if `make` is available. Make sure you have the system
-- requirements installed.
{
2023-09-02 17:07:06 +00:00
"nvim-telescope/telescope-fzf-native.nvim",
2023-09-02 16:48:46 +00:00
-- NOTE: If you are having trouble with this installation,
-- refer to the README for telescope-fzf-native for more instructions.
2023-09-02 17:07:06 +00:00
build = "make",
2023-09-02 16:48:46 +00:00
cond = function()
2023-09-02 17:07:06 +00:00
return vim.fn.executable "make" == 1
2023-09-02 16:48:46 +00:00
end,
},
},
},
}