09/24/2025

This commit is contained in:
Grayson Butcher 2025-09-24 11:17:37 -06:00
parent e947649cb0
commit e945588f4e
6 changed files with 314 additions and 6 deletions

35
lua/autopairs-config.lua Normal file
View file

@ -0,0 +1,35 @@
-- autopairs-config.lua
-- Setup autopairs with nvim-cmp.
local status_ok, npairs = pcall(require, 'nvim-autopairs')
if not status_ok then
return
end
npairs.setup {
check_ts = true,
ts_config = {
lua = { 'string', 'source' },
javascript = { 'string', 'template_string' },
java = false,
},
disable_filetype = { 'TelescopePrompt', 'spectre_panel' },
fast_wrap = {
map = '<M-e>',
chars = { '{', '[', '(', '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
offset = 0, -- Offset from pattern match
end_key = '$',
keys = 'qwertyuiopzxcvbnmasdfghjkl',
check_comma = true,
highlight = 'PmenuSel',
highlight_grey = 'LineNr',
},
}
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
local cmp_status_ok, cmp = pcall(require, 'cmp')
if not cmp_status_ok then
return
end
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done { map_char = { tex = '' } })

View file

@ -2,4 +2,21 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {}
print 'plugins.lua is being loaded'
return {
-- Colorizer
{
'norcalli/nvim-colorizer.lua',
config = function()
require('colorizer').setup({
'*', -- Highlight all filetypes
css = { rgb_fn = true },
html = { names = false },
}, {
mode = 'foreground',
})
end,
},
}

View file

@ -0,0 +1,5 @@
-- lua/kickstart/plugins/copilot-vim.lua
return {
'github/copilot.vim',
event = 'InsertEnter', -- Lazy-load on insert
}

106
lua/plugins.lua Normal file
View file

@ -0,0 +1,106 @@
return {
-- Alpha (Dashboard)
{
'goolord/alpha-nvim',
lazy = true,
},
-- Auto Pairs
-- Added This Plugin
{
'windwp/nvim-autopairs',
},
-- Bufferline
{
'akinsho/bufferline.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
},
-- Colorscheme
{
'folke/tokyonight.nvim',
},
-- Hop (Better Navigation)
{
'phaazon/hop.nvim',
lazy = true,
},
-- Lualine
{
'nvim-lualine/lualine.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
},
-- Language Support
{
'VonHeikemen/lsp-zero.nvim',
lazy = true,
branch = 'v1.x',
dependencies = {
-- LSP Support
{ 'neovim/nvim-lspconfig' }, -- Required
{ 'williamboman/mason.nvim' }, -- Optional
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
-- Autocompletion
{ 'hrsh7th/nvim-cmp' }, -- Required
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
{ 'hrsh7th/cmp-buffer' }, -- Optional
{ 'hrsh7th/cmp-path' }, -- Optional
{ 'saadparwaiz1/cmp_luasnip' }, -- Optional
{ 'hrsh7th/cmp-nvim-lua' }, -- Optional
-- Snippets
{ 'L3MON4D3/LuaSnip' }, -- Required
{ 'rafamadriz/friendly-snippets' }, -- Optional
},
},
-- Nvimtree (File Explorer)
{
'nvim-tree/nvim-tree.lua',
lazy = true,
dependencies = {
'nvim-tree/nvim-web-devicons',
},
},
-- Telescope (Fuzzy Finder)
{
'nvim-telescope/telescope.nvim',
lazy = true,
dependencies = {
{ 'nvim-lua/plenary.nvim' },
},
},
-- Treesitter
{
'nvim-treesitter/nvim-treesitter',
},
-- Toggle Term
{
'akinsho/toggleterm.nvim',
config = true,
},
-- Which-key
{
'folke/which-key.nvim',
lazy = true,
},
-- Github Copilot
{
'github/copilot.vim',
event = 'InsertEnter',
},
}