Initial commit

This commit is contained in:
2026-03-25 12:19:28 -05:00
commit 800c7976a1
77 changed files with 8373 additions and 0 deletions

View File

@@ -0,0 +1,230 @@
-- The MIT License (MIT)
--
-- Copyright © 2026 Scott E. Graves <scott.e.graves@protonmail.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
-- and associated documentation files (the “Software”), to deal in the Software without restriction,
-- including without limitation the rights to use, copy, modify, merge, publish, distribute,
-- sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all copies or
-- substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
-- BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--
local utils = require("darcula.utils")
NV_DARCULA_COLOR_COLUMN = utils.parse_env("NV_DARCULA_COLOR_COLUMN", "80")
NV_DARCULA_COLOR_SCHEME =
utils.parse_env("NV_DARCULA_COLOR_SCHEME", "darcula_lush")
NV_DARCULA_ENABLE_COC = utils.parse_env("NV_DARCULA_ENABLE_COC", true)
NV_DARCULA_ENABLE_CODE_LENS =
utils.parse_env("NV_DARCULA_ENABLE_CODE_LENS", false)
NV_DARCULA_ENABLE_DAP = utils.parse_env("NV_DARCULA_ENABLE_DAP", true)
NV_DARCULA_ENABLE_FORMATTING =
utils.parse_env("NV_DARCULA_ENABLE_FORMATTING", true)
NV_DARCULA_ENABLE_GIT_LINE_BLAME =
utils.parse_env("NV_DARCULA_ENABLE_GIT_LINE_BLAME", false)
NV_DARCULA_ENABLE_HIDDEN_FILES =
utils.parse_env("NV_DARCULA_ENABLE_HIDDEN_FILES", false)
NV_DARCULA_ENABLE_INLAY_HINTS =
utils.parse_env("NV_DARCULA_ENABLE_INLAY_HINTS", false)
NV_DARCULA_ENABLE_VIRTUAL_TEXT =
utils.parse_env("NV_DARCULA_ENABLE_VIRTUAL_TEXT", false)
NV_DARCULA_CLANGD_ARGS =
utils.parse_env_list(
"NV_DARCULA_CLANGD_ARGS",
{
"--all-scopes-completion",
"--background-index",
"--clang-tidy",
"--completion-style=detailed",
"--cross-file-rename",
"--enable-config",
"--header-insertion-decorators",
"--log=info",
"--pch-storage=disk",
"--suggest-missing-includes",
"-j=4"
}
)
NV_DARCULA_COC_EXTENSIONS =
utils.parse_env_list(
"NV_DARCULA_COC_EXTENSIONS",
{
"coc-calc",
"coc-clang-format-style-options",
"coc-clangd",
"coc-cmake",
"coc-css",
"coc-eslint",
"coc-flutter",
"coc-go",
"coc-highlight",
"coc-html",
"coc-java",
"coc-jedi",
"coc-jest",
"coc-json",
"coc-lightbulb",
"coc-markdownlint",
"coc-omnisharp",
"coc-powershell",
"coc-react-refactor",
"coc-sh",
"coc-snippets",
"coc-spell-checker",
"coc-sumneko-lua",
"coc-tsserver",
"coc-vimlsp"
}
)
NV_DARCULA_CSPELL_LANGUAGES =
utils.parse_env_list(
"NV_DARCULA_CSPELL_LANGUAGES",
{
"asciidoc",
"c",
"cmake",
"cpp",
"csharp",
"css",
"dart",
"git-commit",
"go",
"handlebars",
"haskell",
"html",
"jade",
"java",
"javascript",
"javascriptreact",
"json",
"jsonc",
"latex",
"less",
"lua",
"markdown",
"php",
"plaintext",
"pug",
"python",
"restructuredtext",
"rust",
"scala",
"scss",
"text",
"typescript",
"typescriptreact",
"vim",
"yaml",
"yml"
}
)
NV_DARCULA_LUA_GLOBALS =
utils.parse_env_list(
"NV_DARCULA_LUA_GLOBALS",
{
"MiniIcons",
"MiniNotify",
"MiniSnippets",
"MiniStarter",
"_G",
"vim"
}
)
NV_DARCULA_MASON_INST_LIST =
utils.parse_env_list(
"NV_DARCULA_MASON_INST_LIST",
{
"bashls",
"clangd",
"cspell_ls",
"gopls",
"lua_ls",
"vimls"
}
)
NV_DARCULA_MASON_LSP_LIST =
utils.parse_env_list(
"NV_DARCULA_MASON_LSP_LIST",
{
"bashls",
"clangd",
"cmake",
"cspell_ls",
"gopls",
"lua_ls",
"vimls"
}
)
NV_DARCULA_MASON_TOOL_LIST =
utils.parse_env_list(
"NV_DARCULA_MASON_TOOL_LIST",
{
"clang-format",
"gofumpt",
"google-java-format",
"prettier",
"shellcheck",
"shfmt",
"yapf"
}
)
NV_DARCULA_TREESITTER_LIST =
utils.parse_env_list(
"NV_DARCULA_TREESITTER_LIST",
{
"angular",
"awk",
"bash",
"cmake",
"cpp",
"css",
"dockerfile",
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
"html",
"http",
"ini",
"java",
"javascript",
"jsdoc",
"json",
"lua",
"luadoc",
"luap",
"luau",
"markdown",
"markdown_inline",
"meson",
"ninja",
"pug",
"python",
"query",
"rust",
"starlark",
"toml",
"typescript",
"vim",
"vimdoc",
"xml",
"yaml"
}
)