mirror of
https://github.com/zoriya/flake.git
synced 2026-06-05 11:39:51 +00:00
Replace colorizer with lsp's document_color
This commit is contained in:
@@ -100,7 +100,6 @@ in
|
||||
dressing-nvim
|
||||
mini-icons
|
||||
which-key-nvim
|
||||
nvim-colorizer-lua
|
||||
quicker-nvim
|
||||
lualine-nvim
|
||||
nvim-navic
|
||||
|
||||
@@ -9,12 +9,21 @@ vim.lsp.enable("yamlls")
|
||||
vim.lsp.enable("marksman")
|
||||
vim.lsp.enable("texlab")
|
||||
vim.lsp.enable("html")
|
||||
vim.lsp.enable("cssls")
|
||||
vim.lsp.enable("helm_ls")
|
||||
vim.lsp.enable("zls")
|
||||
vim.lsp.enable("gopls")
|
||||
vim.lsp.enable("bashls")
|
||||
vim.lsp.enable("jsonls")
|
||||
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
desc = "Custom lsp attach",
|
||||
group = vim.api.nvim_create_augroup("lsp-setup", { clear = true }),
|
||||
callback = function(args)
|
||||
vim.lsp.document_color.enable(true, args.buf, { style = "virtual" })
|
||||
end,
|
||||
})
|
||||
|
||||
return {
|
||||
-- see https://github.com/seblyng/roslyn.nvim/pull/178
|
||||
{
|
||||
|
||||
@@ -21,32 +21,6 @@ return {
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-colorizer.lua",
|
||||
event = "BufReadPre",
|
||||
opts = {
|
||||
filetypes = {
|
||||
'*',
|
||||
html = { names = true },
|
||||
css = { names = true },
|
||||
},
|
||||
user_default_options = {
|
||||
mode = "virtualtext",
|
||||
RGB = false,
|
||||
RRGGBB = true,
|
||||
names = false,
|
||||
RRGGBBAA = true,
|
||||
AARRGGBB = true,
|
||||
rgb_fn = true,
|
||||
hsl_fn = true,
|
||||
tailwind = true,
|
||||
},
|
||||
},
|
||||
after = function(plug)
|
||||
require("colorizer").setup(plug.opts)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
"quicker.nvim",
|
||||
ft = "qf",
|
||||
|
||||
Reference in New Issue
Block a user