style: reformat code with StyLua

This commit is contained in:
Daniel Hill 2023-04-10 13:22:47 -04:00
parent 8605e52279
commit e9c02cc16a
2 changed files with 14 additions and 14 deletions

View File

@ -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`

View File

@ -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