feat(nvim): add doc snippets to a lot of languages
This commit is contained in:
1 parent
601b313682
commit
f28cc5a7ec
4 files changed
+37
-32
No files matched your search
@@ -1,16 +1,6 @@
|
||||
return {
|
||||
"uga-rosa/ccc.nvim",
|
||||
init = function()
|
||||
vim.api.nvim_create_autocmd("BufReadPost", {
|
||||
callback = function()
|
||||
local firstline = vim.api.nvim_buf_get_lines(0, 0, 1, false)[1]
|
||||
if vim.endswith(firstline, "vim-pseudo-modeline: buffer_has_colors") then
|
||||
vim.cmd.CccHighlighterEnable()
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
ft = { "css", "scss", "sh" },
|
||||
ft = { "html", "javascript", "typescript", "javascriptreact", "typescriptreact", "css", "scss", "sh" },
|
||||
cmd = { "CccPick", "CccConvert", "CccHighlighterEnable", "CccHighlighterDisable", "CccHighlighterToggle" },
|
||||
keys = {
|
||||
{ "<leader>up", "<cmd>CccHighlighterToggle<cr>", desc = "Toggle Paint/Colorizer" },
|
||||
|
||||
@@ -20,6 +20,7 @@ return {
|
||||
executeCommandIfExists(":IBLDisable")
|
||||
Util.toggle.inlay_hints()
|
||||
executeCommandIfExists(":Gitsigns toggle_current_line_blame")
|
||||
executeCommandIfExists(":CccHighlighterDisable")
|
||||
end,
|
||||
on_close = function()
|
||||
vim.opt.laststatus = 3
|
||||
@@ -30,6 +31,7 @@ return {
|
||||
executeCommandIfExists(":IBLEnable")
|
||||
Util.toggle.inlay_hints()
|
||||
executeCommandIfExists(":Gitsigns toggle_current_line_blame")
|
||||
executeCommandIfExists(":CccHighlighterEnable")
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user