fix(config): allow highlights to be overridable
This commit is contained in:
parent
95161afa2a
commit
d746f70865
4 changed files with 30 additions and 38 deletions
|
@ -6,7 +6,6 @@ local opts_cursor = {
|
|||
initial_mode = 'normal',
|
||||
sorting_strategy = 'ascending',
|
||||
layout_strategy = 'cursor',
|
||||
preview_title = false,
|
||||
results_title = false,
|
||||
layout_config = {
|
||||
width = 0.5,
|
||||
|
@ -34,6 +33,7 @@ require('telescope').setup({
|
|||
file_ignore_patterns = {
|
||||
'.git/',
|
||||
},
|
||||
dynamic_preview_title = true,
|
||||
vimgrep_arguments = {
|
||||
'rg',
|
||||
'--ignore',
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
local colors = require('cosmic.core.theme.colors')
|
||||
local highlight = require('cosmic.utils').highlight
|
||||
local M = {}
|
||||
|
||||
function M.init()
|
||||
-- diagnostic virtual text highlights
|
||||
highlight('DiagnosticVirtualTextError', 'None', colors.error)
|
||||
highlight('DiagnosticVirtualTextWarn', 'None', colors.warn)
|
||||
|
@ -34,11 +32,7 @@ function M.init()
|
|||
-- autocomplete highlights
|
||||
highlight('CmpItemAbbrDeprecated', 'None', colors.warn)
|
||||
|
||||
-- todo: needs to highlight after lsp start, why? idk
|
||||
vim.cmd([[
|
||||
highlight clear NormalFloat
|
||||
highlight link NormalFloat Normal
|
||||
]])
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -2,6 +2,7 @@ require('cosmic.disabled')
|
|||
require('cosmic.pluginsInit')
|
||||
require('cosmic.compiled')
|
||||
require('cosmic.editor')
|
||||
require('cosmic.core.theme.highlights')
|
||||
|
||||
do
|
||||
local ok, err = pcall(require, 'cosmic.config.editor')
|
||||
|
|
|
@ -46,9 +46,6 @@ function M.on_attach(client, bufnr)
|
|||
border = 'single',
|
||||
},
|
||||
}, bufnr)
|
||||
|
||||
-- for some reason, highlights have to happen here
|
||||
require('cosmic.core.theme.highlights').init()
|
||||
end
|
||||
|
||||
M.flags = {
|
||||
|
|
Loading…
Add table
Reference in a new issue