separated plugins configs and added couple new plugins
This commit is contained in:
parent
8c93e97b86
commit
6b3424c590
11 changed files with 201 additions and 115 deletions
25
init.lua
25
init.lua
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue