Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/nvui.txt
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,16 @@ It's preferred to put the dofile code in your plugin's config func
end
}
<
To include custom integrations, use the `base46.integrations_dir` option to
define a module name that contains the custom integration files. Loading
from the custom module location will only be tried if there is no matching
official integration.
>lua
M.base46 = {
integrations_dir = "foo.integrations",
integrations = { "dap", "hop", "customname" },
}
<
------------------------------------------------------------------------------
6.5 Local themes *nvui.base46.local_themes*

Expand Down
1 change: 1 addition & 0 deletions lua/nvconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local options = {
theme = "onedark", -- default theme
hl_add = {},
hl_override = {},
integrations_dir = nil,
integrations = {},
changed_themes = {},
transparency = false,
Expand Down
3 changes: 2 additions & 1 deletion nvchad_types/all_hl_groups.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions nvchad_types/chadrc.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions scripts/update-nvchad-types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ local gen_highlights = function()
end
end
end
-- allow string type to keep completion through enum values
-- while avoiding linter warnings for custom integrations.
table.insert(contents, string.format "---| string")

for name, integration in vim.spairs(hlgroups) do
if string.sub(name, 1, 1) == "@" then
Expand Down