feat: remove global variable after being used

fix: dracula-soft
This commit is contained in:
Max Miliano 2024-10-04 21:42:28 -03:00
parent d5b2186916
commit af88d1dfef
2 changed files with 45 additions and 1 deletions

View file

@ -19,7 +19,7 @@ endif
set termguicolors
g:colors_name = 'dracula-soft'
g:dracula_transparency = get(g: 'dracula_transparency', false)
g:dracula_transparency = get(g:, 'dracula_transparency', false)
g:dracula_treesitter = get(g:, 'dracula_treesitter', false)
g:dracula_lspconfig = get(g:, 'dracula_lspconfig', false)
@ -453,3 +453,25 @@ endif
if g:dracula_minicursorword
hi! link MiniCursorword Visual
endif
unlet g:dracula_transparency
unlet g:dracula_treesitter
unlet g:dracula_lspconfig
unlet g:dracula_navic
unlet g:dracula_cmp
unlet g:dracula_ibl
unlet g:dracula_bufferline
unlet g:dracula_neotree
unlet g:dracula_nvimtree
unlet g:dracula_whichkey
unlet g:dracula_dashboard
unlet g:dracula_gitsigns
unlet g:dracula_neogit
unlet g:dracula_todocomments
unlet g:dracula_lazy
unlet g:dracula_telescope
unlet g:dracula_noice
unlet g:dracula_hop
unlet g:dracula_ministatusline
unlet g:dracula_minitabline
unlet g:dracula_ministarter
unlet g:dracula_minicursorword

View file

@ -453,3 +453,25 @@ endif
if g:dracula_minicursorword
hi! link MiniCursorword Visual
endif
unlet g:dracula_transparency
unlet g:dracula_treesitter
unlet g:dracula_lspconfig
unlet g:dracula_navic
unlet g:dracula_cmp
unlet g:dracula_ibl
unlet g:dracula_bufferline
unlet g:dracula_neotree
unlet g:dracula_nvimtree
unlet g:dracula_whichkey
unlet g:dracula_dashboard
unlet g:dracula_gitsigns
unlet g:dracula_neogit
unlet g:dracula_todocomments
unlet g:dracula_lazy
unlet g:dracula_telescope
unlet g:dracula_noice
unlet g:dracula_hop
unlet g:dracula_ministatusline
unlet g:dracula_minitabline
unlet g:dracula_ministarter
unlet g:dracula_minicursorword