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, end,
}) })
-- This is a mitigation for new Nvim v0.9.0 lsp semantic highlights -- This is a mitigation for new Nvim v0.9.0 lsp semantic highlights
-- overriding treesitter highlights. Need to link these to relevant -- overriding treesitter highlights. Need to link these to relevant
-- treesitter groups in the future. See :h lsp-semantic-highlight -- treesitter groups in the future. See :h lsp-semantic-highlight
vim.api.nvim_create_autocmd("ColorScheme", { vim.api.nvim_create_autocmd("ColorScheme", {
group = gruber_darker_group, group = gruber_darker_group,
pattern = "*", pattern = "*",
callback = function() callback = function()
-- Hide all semantic highlights -- Hide all semantic highlights
for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
vim.api.nvim_set_hl(0, group, {}) vim.api.nvim_set_hl(0, group, {})
end end
end end,
}) })
end end
---Clear current highlights and set Neovim global `colors_name` ---Clear current highlights and set Neovim global `colors_name`

View File

@ -18,7 +18,7 @@ function M.setup()
for _, provider in ipairs(providers) do for _, provider in ipairs(providers) do
provider:setup() provider:setup()
end end
vim.opt.guicursor:append("a:Cursor/lCursor") vim.opt.guicursor:append("a:Cursor/lCursor")
end end
return M return M