separated plugins configs and added couple new plugins

This commit is contained in:
Jeremie Fraeys 2023-11-22 01:25:43 -05:00
parent 8c93e97b86
commit 6b3424c590
11 changed files with 201 additions and 115 deletions

View file

@ -1,11 +1,10 @@
-- See `:help mapleader`
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Install package manager
-- https://github.com/folke/lazy.nvim
-- `:help lazy.nvim.txt` for more info
-- https://github.com/folke/lazy.nvim
-- Check Lua documentation for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
@ -33,19 +32,13 @@ require('lazy').setup({
-- Detect tabstop and shiftwidth automatically
'tpope/vim-sleuth',
{ import = 'custom.plugins' },
{
import = 'custom.plugins',
exclude = 'custom.plugins.mason',
},
}, opts)
require('config.options')
require('config.mappings')
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
})
require('config.utils')
require('config.themes')