style: reformat code with StyLua
This commit is contained in:
parent
8605e52279
commit
e9c02cc16a
@ -29,19 +29,19 @@ local function create_autocmds()
|
||||
end,
|
||||
})
|
||||
|
||||
-- This is a mitigation for new Nvim v0.9.0 lsp semantic highlights
|
||||
-- overriding treesitter highlights. Need to link these to relevant
|
||||
-- treesitter groups in the future. See :h lsp-semantic-highlight
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
group = gruber_darker_group,
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
-- Hide all semantic highlights
|
||||
for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
|
||||
vim.api.nvim_set_hl(0, group, {})
|
||||
end
|
||||
end
|
||||
})
|
||||
-- This is a mitigation for new Nvim v0.9.0 lsp semantic highlights
|
||||
-- overriding treesitter highlights. Need to link these to relevant
|
||||
-- treesitter groups in the future. See :h lsp-semantic-highlight
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
group = gruber_darker_group,
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
-- Hide all semantic highlights
|
||||
for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
|
||||
vim.api.nvim_set_hl(0, group, {})
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
---Clear current highlights and set Neovim global `colors_name`
|
||||
|
@ -18,7 +18,7 @@ function M.setup()
|
||||
for _, provider in ipairs(providers) do
|
||||
provider:setup()
|
||||
end
|
||||
vim.opt.guicursor:append("a:Cursor/lCursor")
|
||||
vim.opt.guicursor:append("a:Cursor/lCursor")
|
||||
end
|
||||
|
||||
return M
|
||||
|
Loading…
Reference in New Issue
Block a user