Dotfiles/.config/nvim/lua/plugins.lua

86 lines
2.3 KiB
Lua
Raw Normal View History

2023-11-17 10:08:13 +00:00
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)
require("lazy").setup({
2023-11-20 14:24:20 +00:00
-- Gruvbox theme
2023-11-17 10:08:13 +00:00
{ "ellisonleao/gruvbox.nvim", priority = 1000 , config = true },
2023-11-20 14:24:20 +00:00
-- Telescope: fuzzy finder
2023-11-17 10:08:13 +00:00
{
'nvim-telescope/telescope.nvim', tag = '0.1.4',
dependencies = { 'nvim-lua/plenary.nvim' }
},
2023-11-20 14:24:20 +00:00
-- File tree
2023-11-17 10:08:13 +00:00
"nvim-tree/nvim-tree.lua",
2023-11-20 14:24:20 +00:00
-- Treesitter
2023-11-17 10:08:13 +00:00
"nvim-treesitter/nvim-treesitter",
{
"Exafunction/codeium.vim",
config = function ()
-- Change '<C-g>' here to any keycode you like.
vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true })
vim.keymap.set('i', '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true })
vim.keymap.set('i', '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true })
vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true })
end
},
2023-11-20 14:24:20 +00:00
-- Completion framework
2023-11-17 10:08:13 +00:00
"hrsh7th/nvim-cmp",
2023-11-22 09:39:58 +00:00
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-nvim-lsp-document-symbol",
"hrsh7th/cmp-nvim-lsp-signature-help",
"ray-x/cmp-treesitter",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"andersevenrud/cmp-tmux",
"garyhurtz/cmp_kitty",
"kdheepak/cmp-latex-symbols",
"hrsh7th/cmp-emoji",
"Jezda1337/nvim-html-css",
2023-11-20 14:24:20 +00:00
-- LSP setup
2023-11-17 10:08:13 +00:00
"neovim/nvim-lspconfig",
2023-11-20 14:24:20 +00:00
-- Icons for Treesitter/nvim-tree
2023-11-17 10:08:13 +00:00
"nvim-tree/nvim-web-devicons",
2023-11-20 14:44:31 +00:00
-- LSP icons
"onsails/lspkind.nvim",
2023-11-20 14:24:20 +00:00
-- Git blame popup
2023-11-17 10:08:13 +00:00
"rhysd/git-messenger.vim",
2023-11-20 14:24:20 +00:00
-- Debugger
2023-11-17 10:08:13 +00:00
"mfussenegger/nvim-dap",
"rcarriga/nvim-dap-ui",
2023-11-20 14:24:20 +00:00
-- Vi motion within camelcase, underscore, etc
2023-11-17 10:08:13 +00:00
"chaoren/vim-wordmotion",
2023-11-20 14:24:20 +00:00
-- Git
2023-11-17 10:08:13 +00:00
"tpope/vim-fugitive",
2023-11-20 14:24:20 +00:00
-- Edit parens etc.
2023-11-17 10:08:13 +00:00
"tpope/vim-surround",
2023-11-20 14:24:20 +00:00
-- Rails utilities
2023-11-17 10:08:13 +00:00
"tpope/vim-rails",
2023-11-20 14:24:20 +00:00
-- Auto input 'end's
2023-11-17 10:08:13 +00:00
"rrethy/nvim-treesitter-endwise",
2023-11-20 14:24:20 +00:00
-- Blow shit up
2023-11-17 10:08:13 +00:00
"Eandrju/cellular-automaton.nvim",
2023-11-20 14:24:20 +00:00
-- Auto disable search highlight
2023-11-17 10:08:13 +00:00
"romainl/vim-cool",
2023-11-20 14:24:20 +00:00
-- Focus on current buffer
2023-11-17 10:08:13 +00:00
{
"folke/zen-mode.nvim",
opts = {
plugins = {
tmux = { enabled = true },
}
}
}
})