color and ts-autotag

This commit is contained in:
rapzy 2024-03-23 10:19:24 +05:45
parent ccdbf25310
commit 0ec8b389ee
3 changed files with 95 additions and 2 deletions

View file

@ -0,0 +1,47 @@
return {
'tjdevries/colorbuddy.nvim',
config = function()
require('colorbuddy').colorscheme 'gruvbuddy'
local colorbuddy = require 'colorbuddy'
local Color = colorbuddy.Color
local Group = colorbuddy.Group
local c = colorbuddy.colors
local g = colorbuddy.groups
local s = colorbuddy.styles
Color.new('white', '#f2e5bc')
Color.new('red', '#cc6666')
Color.new('pink', '#fef601')
Color.new('green', '#99cc99')
Color.new('yellow', '#f8fe7a')
Color.new('blue', '#81a2be')
Color.new('aqua', '#8ec07c')
Color.new('cyan', '#8abeb7')
Color.new('purple', '#8e6fbd')
Color.new('violet', '#b294bb')
Color.new('orange', '#de935f')
Color.new('brown', '#a3685a')
Color.new('seagreen', '#698b69')
Color.new('turquoise', '#698b69')
local background_string = '#111111'
Color.new('background', background_string)
Color.new('gray0', background_string)
Group.new('Normal', c.superwhite, c.gray0)
Group.new('@constant', c.orange, nil, s.none)
Group.new('@function', c.yellow, nil, s.none)
Group.new('@function.bracket', g.Normal, g.Normal)
Group.new('@keyword', c.violet, nil, s.none)
Group.new('@keyword.faded', g.nontext.fg:light(), nil, s.none)
Group.new('@property', c.blue)
Group.new('@variable', c.superwhite, nil)
Group.new('@variable.builtin', c.purple:light():light(), g.Normal)
-- I've always liked lua function calls to be blue. I don't know why.
Group.new('@function.call.lua', c.blue:dark(), nil, nil)
end,
}

View file

@ -0,0 +1,46 @@
return {
'windwp/nvim-ts-autotag',
config = function()
local options = {
auto_install = true,
ensure_installed = {
'lua',
'vim',
'go',
'toml',
'css',
'tsx',
'css',
'html',
'lua',
},
highlight = {
enable = true,
use_languagetree = true,
},
autotag = {
enable = true,
filetypes = {
'html',
'javascript',
'typescript',
'javascriptreact',
'typescriptreact',
'svelte',
'vue',
'tsx',
'jsx',
'rescript',
'css',
'lua',
'xml',
'php',
'markdown',
},
},
indent = { enable = true },
}
require('nvim-treesitter.configs').setup(options)
end,
}