nixos/config/nvim/lua/core/plugins.lua

101 lines
2.5 KiB
Lua
Raw Normal View History

2023-08-08 00:48:22 +04:00
-- 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
2023-08-08 00:48:22 +04:00
vim.opt.rtp:prepend(lazypath)
2023-08-08 00:48:22 +04:00
vim.g.mapleader = ' '
2023-08-08 00:48:22 +04:00
local plugins = {
2023-08-08 00:48:22 +04:00
-- whats an ide without a file explorer
"nvim-tree/nvim-tree.lua",
"nvim-tree/nvim-web-devicons",
2023-08-08 22:23:30 +04:00
-- colorscheme
2023-08-08 22:24:54 +04:00
{ "catppuccin/nvim", name = "catppuccin" },
2023-08-08 22:23:30 +04:00
2023-08-08 00:48:22 +04:00
-- default bar only looks good on linux
"nvim-lualine/lualine.nvim",
2023-08-08 00:48:22 +04:00
-- syntax highlighting apparently
"nvim-treesitter/nvim-treesitter",
"windwp/nvim-ts-autotag",
2023-08-08 00:48:22 +04:00
-- like fzf but goofier
{
"nvim-telescope/telescope.nvim",
version = "0.1.1",
dependencies = { { "nvim-lua/plenary.nvim" } },
},
-- lsp stuff
{
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
},
-- le completion
"hrsh7th/nvim-cmp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp",
"onsails/lspkind.nvim",
2023-08-08 00:48:22 +04:00
-- snippet
"L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip",
2023-08-08 00:48:22 +04:00
-- auto close to prevent carpal tunnel :
"windwp/nvim-autopairs",
2023-08-08 00:48:22 +04:00
-- git stuff lol
"lewis6991/gitsigns.nvim",
2023-08-08 00:48:22 +04:00
-- linting
"jose-elias-alvarez/null-ls.nvim",
"jayp0521/mason-null-ls.nvim",
2023-08-08 00:48:22 +04:00
-- flex
"andweeb/presence.nvim",
2023-07-29 21:45:44 +04:00
-- color picker
2023-08-08 00:48:22 +04:00
"ziontee113/color-picker.nvim",
2023-08-10 20:12:38 +04:00
-- startup
{
'glepnir/dashboard-nvim',
2023-08-10 20:27:29 +04:00
config = function()
require('dashboard').setup {
theme = 'doom', -- theme is doom and hyper default is hyper
disable_move, -- default is false disable move keymap for hyper
shortcut_type, -- shorcut type 'letter' or 'number'
change_to_vcs_root, -- default is false,for open file in hyper mru. it will change to the root of vcs
config = {}, -- config used for theme
hide = {
statusline, -- hide statusline default is true
tabline, -- hide the tabline
winbar, -- hide winbar
},
preview = {
command, -- preview command
file_path, -- preview file path
file_height, -- preview file height
file_width, -- preview file width
},
}
end,
2023-08-10 20:12:38 +04:00
event = 'VimEnter',
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
}
2023-08-08 00:48:22 +04:00
}
2023-08-08 00:48:22 +04:00
require("lazy").setup(plugins, {})