mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2025-01-07 14:04:00 -05:00
133dd68322
- nvim-ts-rainbow: move config into 'nvim-treesitter.configs' block - bufferline.nvim: update lsp diagnostic display, highlight - gitsigns.nvim: add highlight for line blame info - nvim-autopairs: update new config - highlight: no more lazy loading (only 1-2ms faster, and caused some glitched highlights at startup due to treesitter group) - chore: theme.util -> util
24 lines
531 B
Lua
24 lines
531 B
Lua
local M = {}
|
|
|
|
function M.set(theme)
|
|
-- Reset everything
|
|
vim.api.nvim_command('hi clear')
|
|
if vim.fn.exists('syntax_on') then vim.api.nvim_command('syntax reset') end
|
|
vim.opt.background = 'dark'
|
|
|
|
-- Get theme specs
|
|
local t = require('themes.' .. theme)
|
|
vim.g.colors_name = theme
|
|
|
|
-- Load highlight groups
|
|
t.highlight_editor()
|
|
t.highlight_syntax()
|
|
t.set_vim_termcolors()
|
|
t.highlight_plugins()
|
|
t.highlight_languages()
|
|
t.highlight_treesitter()
|
|
t.highlight_lsp()
|
|
end
|
|
|
|
return M
|