updates
This commit is contained in:
+16
-13
@@ -338,7 +338,7 @@ require("packer").startup {function(use)
|
|||||||
use {"mbbill/undotree",
|
use {"mbbill/undotree",
|
||||||
config = function()
|
config = function()
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
map("", "<C-t>", ":UndotreeToggle<cr>:UndotreeFocus<cr>", { noremap = true })
|
map("", "<F11>", ":UndotreeToggle<cr>:UndotreeFocus<cr>", { noremap = true })
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -586,25 +586,28 @@ use {"nvim-treesitter/nvim-treesitter",
|
|||||||
sign_priority = 8, -- sign priority
|
sign_priority = 8, -- sign priority
|
||||||
-- keywords recognized as todo comments
|
-- keywords recognized as todo comments
|
||||||
keywords = {
|
keywords = {
|
||||||
FIX = { icon = " ", color = "error", alt = { "FIXME", "BUG", "FIXIT", "ISSUE" } },
|
ERROR = { icon = " ", color = "error" },
|
||||||
TODO = { icon = " ", color = "info" },
|
FIX = { icon = " ", color = "warning" },
|
||||||
HACK = { icon = " ", color = "warning" },
|
TODO = { icon = " ", color = "warning" },
|
||||||
WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } },
|
FEAT = { icon = " ", color = "info" },
|
||||||
PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
|
PERF = { icon = " ", color = "info" },
|
||||||
NOTE = { icon = " ", color = "hint", alt = { "INFO" } },
|
MAYBE = { icon = " ", color = "default" },
|
||||||
|
IDEA = { icon = " ", color = "hint" },
|
||||||
},
|
},
|
||||||
merge_keywords = true, -- when true, custom keywords will be merged with the defaults
|
merge_keywords = true, -- when true, custom keywords will be merged with the defaults
|
||||||
|
highlight = { keyword = "bg", pattern = [[<(KEYWORDS)\s*]], },
|
||||||
|
search = { pattern = [[\b(KEYWORDS)\b]], },
|
||||||
colors = {
|
colors = {
|
||||||
error = { "LspDiagnosticsDefaultError", "ErrorMsg", "#DC2626" },
|
error = { "#E15030" },
|
||||||
warning = { "LspDiagnosticsDefaultWarning", "WarningMsg", "#FBBF24" },
|
warning = { "#FBBF24" },
|
||||||
info = { "LspDiagnosticsDefaultInformation", "#10B981" },
|
info = { "#91BED0" },
|
||||||
hint = { "LspDiagnosticsDefaultHint", "#7C3AED" },
|
hint = { "#10B981" },
|
||||||
default = { "Identifier", "#2563EB" },
|
default = { "#91D0C1" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
local opts = { noremap = true }
|
local opts = { noremap = true }
|
||||||
map("n", "<F4>", ":TodoTrouble<cr>", opts)
|
map("n", "<C-t>", ":TodoTrouble<cr>", opts)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user