environment/home/.config/nvim/lua/plugins.lua
2025-08-01 12:52:57 +02:00

57 lines
1.2 KiB
Lua

-- 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",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
-- Core
{ "nvim-lua/plenary.nvim" },
{
"nvim-telescope/telescope.nvim",
tag = "0.1.5",
lazy = false
},
-- LSP and Autocomplete
{ "neovim/nvim-lspconfig" },
{ "hrsh7th/nvim-cmp" },
{ "hrsh7th/cmp-nvim-lsp" },
{ "hrsh7th/cmp-buffer" },
{ "hrsh7th/cmp-path" },
{ "hrsh7th/cmp-cmdline" },
{ "hrsh7th/cmp-vsnip" },
{ "hrsh7th/vim-vsnip" },
-- Treesitter
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
-- Appearance
{ "tomasiser/vim-code-dark" },
{ "vim-airline/vim-airline" },
{ "vim-airline/vim-airline-themes" },
-- File Explorer / Git / Misc
{ "preservim/nerdtree" },
{ "tpope/vim-fugitive" },
{ "rust-lang/rust.vim" },
{ "ray-x/go.nvim" },
{ "vim-syntastic/syntastic" },
{ "tokorom/syntastic-swiftlint.vim" },
})
vim.api.nvim_create_autocmd("User", {
pattern = "LazyDone",
callback = function()
vim.cmd("colorscheme codedark")
end,
})