'nathom/filetype.nvim'; -- Faster filetype.vim replacement
'neovim/nvim-lspconfig'; -- LSP configurations
'norcalli/nvim-colorizer.lua'; -- Highlight css colors
+ 'norcalli/nvim_utils'; -- Lua conveniences
'ntpeters/vim-better-whitespace'; -- Highlight and strip whitespace
'nvim-treesitter/nvim-treesitter';-- Parsing
'romgrk/nvim-treesitter-context'; -- Shows context for where you are
'tpope/vim-surround'; -- Easily modify surrounding chars
}
+require('nvim_utils')
+
-- Colorscheme
vim.opt.termguicolors = true
vim.g.colors_name = 'hima'
vim.opt.foldenable = false
map('n', '<leader>fe', ':set foldenable<CR>', opts)
map('n', '<leader>fd', ':set nofoldenable<CR>', opts)
+
+-- Autocommands
+local autocommands = {
+ highlight_yank = {
+ {'TextYankPost', '*',
+ 'lua vim.highlight.on_yank{on_visual=false}'};
+ };
+}
+
+nvim_create_augroups(autocommands)