Initial commit
This commit is contained in:
168
nvim/lua/darcula/setup/100_coc.lua
Normal file
168
nvim/lua/darcula/setup/100_coc.lua
Normal file
@@ -0,0 +1,168 @@
|
||||
-- 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.
|
||||
--
|
||||
if not NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
require("darcula.utils.table")
|
||||
|
||||
local coc_config = vim.fn["coc#config"]
|
||||
local utils = require("darcula.utils")
|
||||
local utils_os = require("darcula.utils.os")
|
||||
|
||||
utils.copy_file(
|
||||
utils.iff(
|
||||
utils_os.is_windows,
|
||||
vim.fs.joinpath(vim.fn.stdpath("config"), "coc-settings.windows.json"),
|
||||
vim.fs.joinpath(vim.fn.stdpath("config"), "coc-settings.unix.json")
|
||||
),
|
||||
vim.fs.joinpath(vim.fn.stdpath("config"), "coc-settings.json")
|
||||
)
|
||||
|
||||
vim.g.coc_data_home = vim.fs.joinpath(vim.fn.stdpath("data"), "coc")
|
||||
|
||||
-- local coc_get_config = vim.fn["coc#util#get_config"]
|
||||
-- M.plug_end = function(lua_library_list)
|
||||
-- utils.augroup_with_autocmd(
|
||||
-- "coc_config_lua_cfg",
|
||||
-- "User",
|
||||
-- "CocNvimInit",
|
||||
-- function()
|
||||
-- local workspace = coc_get_config("Lua").workspace or {}
|
||||
-- local library = workspace.library or {}
|
||||
--
|
||||
-- for _, name in pairs(lua_library_list) do
|
||||
-- local lib = vim.fs.joinpath(vim.g.plug_home, name, "lua")
|
||||
-- if not table.contains(library, lib) then
|
||||
-- table.insert(library, lib)
|
||||
-- end
|
||||
-- end
|
||||
--
|
||||
-- table.insert(library, "/usr/share/awesome/lib")
|
||||
--
|
||||
-- coc_config("Lua.workspace", {library = library})
|
||||
-- end
|
||||
-- )
|
||||
-- end
|
||||
|
||||
local symbols = require("darcula.utils.symbols")
|
||||
|
||||
vim.g.coc_global_extensions = NV_DARCULA_COC_EXTENSIONS
|
||||
vim.g.coc_snippet_next = "<tab>"
|
||||
vim.g.coc_snippet_prev = "<s-tab>"
|
||||
|
||||
local float_config = {
|
||||
winblend = 0,
|
||||
border = true,
|
||||
rounded = true,
|
||||
maxWidth = 120
|
||||
}
|
||||
coc_config("Lua.codeLens.enable", NV_DARCULA_ENABLE_CODE_LENS)
|
||||
coc_config("Lua.completion.callSnippet", "Replace")
|
||||
coc_config("Lua.diagnostics.globals", NV_DARCULA_LUA_GLOBALS)
|
||||
coc_config("Lua.diagnostics.workspaceDelay", 30000)
|
||||
coc_config("Lua.hint.enable", NV_DARCULA_ENABLE_INLAY_HINTS)
|
||||
coc_config("Lua.telemetry.enable", false)
|
||||
coc_config("Lua.workspace.checkThirdParty", false)
|
||||
coc_config("Lua.workspace.maxPreload", 10000)
|
||||
coc_config("Lua.workspace.preloadFileSize", 3000)
|
||||
coc_config("cSpell.enabledLanguageIds", NV_DARCULA_CSPELL_LANGUAGES)
|
||||
coc_config("cSpell.import", {"./"})
|
||||
coc_config("clangd.arguments", NV_DARCULA_CLANGD_ARGS)
|
||||
if utils_os.is_windows then
|
||||
coc_config("clangd.path", "c:\\bin\\clangd.cmd")
|
||||
end
|
||||
coc_config("clangd.inlayHint.enable", NV_DARCULA_ENABLE_INLAY_HINTS)
|
||||
coc_config("coc.preferences.colorSupport", false)
|
||||
coc_config("coc.preferences.maxFileSize", "10MB")
|
||||
coc_config("codeLens.enable", NV_DARCULA_ENABLE_CODE_LENS)
|
||||
coc_config("diagnostic.enableHighlightLineNumber", true)
|
||||
coc_config("diagnostic.errorSign", symbols.line.errors)
|
||||
coc_config("diagnostic.floatConfig", float_config)
|
||||
coc_config("diagnostic.hintSign", symbols.line.hints)
|
||||
coc_config("diagnostic.infoSign", symbols.line.info)
|
||||
coc_config("diagnostic.level", "hint")
|
||||
coc_config("diagnostic.virtualText", NV_DARCULA_ENABLE_VIRTUAL_TEXT)
|
||||
coc_config("diagnostic.virtualTextPrefix", symbols.line.info .. " ")
|
||||
coc_config("diagnostic.warningSign", symbols.line.warnings)
|
||||
coc_config("highlight.colorNames.enable", false)
|
||||
coc_config("highlight.colors.enable", false)
|
||||
coc_config("highlight.document.enable", false)
|
||||
coc_config("hover.autoHide", false)
|
||||
coc_config("hover.floatConfig", float_config)
|
||||
coc_config("inlayHint.display", NV_DARCULA_ENABLE_INLAY_HINTS)
|
||||
coc_config("inlayHint.enable", NV_DARCULA_ENABLE_INLAY_HINTS)
|
||||
coc_config("inlayHint.enableParameter", NV_DARCULA_ENABLE_INLAY_HINTS)
|
||||
coc_config("inlayHint.refreshOnInsertMode", NV_DARCULA_ENABLE_INLAY_HINTS)
|
||||
if not utils_os.is_windows then
|
||||
coc_config("jedi.executable.command", "jedi-language-server")
|
||||
end
|
||||
coc_config("java.import.maven.enabled", true)
|
||||
coc_config("java.jdt.ls.lombokSupport.enabled", true)
|
||||
coc_config(
|
||||
"java.jdt.ls.vmargs",
|
||||
"-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx4G -Xms4G -Xlog:disable"
|
||||
)
|
||||
coc_config("java.maven.downloadSources", false)
|
||||
coc_config("java.maven.updateSnapshots", true)
|
||||
coc_config("java.referencesCodeLens.enabled", NV_DARCULA_ENABLE_CODE_LENS)
|
||||
coc_config("java.trace.server", "verbose")
|
||||
coc_config("lightbulb.enableSign", not NV_DARCULA_ENABLE_VIRTUAL_TEXT)
|
||||
coc_config("lightbulb.enableVirtualText", NV_DARCULA_ENABLE_VIRTUAL_TEXT)
|
||||
coc_config(
|
||||
"lightbulb.text",
|
||||
{default = symbols.status.info, quickfix = symbols.status.fix}
|
||||
)
|
||||
coc_config("notification.border", true)
|
||||
coc_config("notification.highlightGroup", "CocFloating")
|
||||
coc_config("notification.statusLineProgress", true)
|
||||
coc_config("notification.winblend", 0)
|
||||
coc_config("signature.floatConfig", float_config)
|
||||
coc_config("signature.hideOnTextChange", false)
|
||||
coc_config("suggest.floatConfig", float_config)
|
||||
coc_config("suggest.keepCompleteopt", true)
|
||||
coc_config("suggest.noselect", true)
|
||||
coc_config("suggest.virtualText", NV_DARCULA_ENABLE_VIRTUAL_TEXT)
|
||||
coc_config("sumneko-lua.enableNvimLuaDev", true)
|
||||
|
||||
coc_config(
|
||||
"languageserver",
|
||||
{
|
||||
vala = {
|
||||
command = "vala-language-server",
|
||||
filetypes = {"vala", "genie"}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
if utils_os.is_windows then
|
||||
coc_config(
|
||||
"sh.commandPath",
|
||||
vim.fs.joinpath(
|
||||
vim.g.coc_data_home,
|
||||
"extensions",
|
||||
"node_modules",
|
||||
"coc-sh",
|
||||
"node_modules",
|
||||
".bin",
|
||||
"bash-language-server.cmd"
|
||||
)
|
||||
)
|
||||
end
|
||||
105
nvim/lua/darcula/setup/100_mason.lua
Normal file
105
nvim/lua/darcula/setup/100_mason.lua
Normal file
@@ -0,0 +1,105 @@
|
||||
-- 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.
|
||||
--
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
local symbols = require("darcula.utils.symbols")
|
||||
---@diagnostic disable-next-line: deprecated
|
||||
local unpacker = table.unpack or unpack
|
||||
|
||||
require("mason").setup {
|
||||
ui = {
|
||||
border = "rounded",
|
||||
icons = {
|
||||
package_installed = symbols.status.ok,
|
||||
package_pending = symbols.status.checking,
|
||||
package_uninstalled = symbols.status.uninstalled
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
require("mason-lspconfig").setup {
|
||||
automatic_enable = NV_DARCULA_MASON_LSP_LIST,
|
||||
ensure_installed = NV_DARCULA_MASON_INST_LIST
|
||||
}
|
||||
|
||||
require("mason-tool-installer").setup {
|
||||
ensure_installed = NV_DARCULA_MASON_TOOL_LIST,
|
||||
run_on_start = true
|
||||
}
|
||||
|
||||
vim.lsp.config(
|
||||
"*",
|
||||
{
|
||||
capabilities = require("mini.completion").get_lsp_capabilities()
|
||||
}
|
||||
)
|
||||
|
||||
for _, name in pairs(NV_DARCULA_MASON_LSP_LIST) do
|
||||
if name == "clangd" then
|
||||
vim.lsp.config(
|
||||
"clangd",
|
||||
{
|
||||
cmd = {
|
||||
"clangd",
|
||||
unpacker(NV_DARCULA_CLANGD_ARGS)
|
||||
}
|
||||
}
|
||||
)
|
||||
elseif name == "lua_ls" then
|
||||
vim.lsp.config(
|
||||
name,
|
||||
{
|
||||
settings = {
|
||||
Lua = {
|
||||
completion = {
|
||||
callSnippet = "Both",
|
||||
keywordSnippet = "Both"
|
||||
},
|
||||
diagnostics = {globals = NV_DARCULA_LUA_GLOBALS},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {enable = false},
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = {
|
||||
vim.env.VIMRUNTIME,
|
||||
vim.fn.stdpath("config")
|
||||
-- vim.fs.joinpath(
|
||||
-- vim.fn.stdpath("data"),
|
||||
-- "site",
|
||||
-- "pack",
|
||||
-- "core",
|
||||
-- "opt"
|
||||
-- )
|
||||
}
|
||||
-- maxPreload = 1000,
|
||||
-- preloadFileSize = 200
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
else
|
||||
vim.lsp.config(name, {})
|
||||
end
|
||||
end
|
||||
89
nvim/lua/darcula/setup/200_lsp.lua
Normal file
89
nvim/lua/darcula/setup/200_lsp.lua
Normal file
@@ -0,0 +1,89 @@
|
||||
-- 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.
|
||||
--
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
local symbols = require("darcula.utils.symbols")
|
||||
local utils = require("darcula.utils")
|
||||
|
||||
vim.diagnostic.config(
|
||||
{
|
||||
float = {
|
||||
border = "rounded",
|
||||
source = "if_many"
|
||||
},
|
||||
signs = {
|
||||
max = 1,
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = symbols.line.errors,
|
||||
[vim.diagnostic.severity.WARN] = symbols.line.warnings,
|
||||
[vim.diagnostic.severity.INFO] = symbols.line.hints,
|
||||
[vim.diagnostic.severity.HINT] = symbols.line.hints
|
||||
},
|
||||
numhl = {
|
||||
[vim.diagnostic.severity.ERROR] = "DiagnosticLineNrError",
|
||||
[vim.diagnostic.severity.WARN] = "DiagnosticLineNrWarn",
|
||||
[vim.diagnostic.severity.INFO] = "DiagnosticLineNrInfo",
|
||||
[vim.diagnostic.severity.HINT] = "DiagnosticLineNrHint"
|
||||
}
|
||||
},
|
||||
virtual_text = NV_DARCULA_ENABLE_VIRTUAL_TEXT
|
||||
}
|
||||
)
|
||||
|
||||
utils.augroup_with_autocmd(
|
||||
"DarculaLspAutoCommands",
|
||||
"LspAttach",
|
||||
"*",
|
||||
function(ev)
|
||||
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
||||
if not client then
|
||||
return
|
||||
end
|
||||
|
||||
if client:supports_method("textDocument/codeLens") then
|
||||
vim.lsp.codelens.enable(NV_DARCULA_ENABLE_CODE_LENS, {bufnr = ev.buf})
|
||||
end
|
||||
|
||||
if client:supports_method("textDocument/documentHighlight") then
|
||||
local group =
|
||||
utils.augroup_with_autocmd_buffer(
|
||||
"DarculaLspBufferAutoCommands",
|
||||
{"CursorHold", "CursorHoldI"},
|
||||
ev.buf,
|
||||
vim.lsp.buf.document_highlight
|
||||
)
|
||||
|
||||
utils.autocmd_buffer(
|
||||
group,
|
||||
{"CursorMoved", "CursorMovedI"},
|
||||
ev.buf,
|
||||
vim.lsp.buf.clear_references
|
||||
)
|
||||
end
|
||||
|
||||
if client:supports_method("textDocument/inlayHint") then
|
||||
vim.lsp.inlay_hint.enable(NV_DARCULA_ENABLE_INLAY_HINTS)
|
||||
end
|
||||
|
||||
require("darcula.keymaps").lsp_on_attach(ev)
|
||||
end
|
||||
)
|
||||
20
nvim/lua/darcula/setup/300_mini_fuzzy.lua
Normal file
20
nvim/lua/darcula/setup/300_mini_fuzzy.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.fuzzy").setup()
|
||||
22
nvim/lua/darcula/setup/300_mini_icons.lua
Normal file
22
nvim/lua/darcula/setup/300_mini_icons.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.icons").setup()
|
||||
MiniIcons.mock_nvim_web_devicons()
|
||||
MiniIcons.tweak_lsp_kind()
|
||||
20
nvim/lua/darcula/setup/300_mini_keymap.lua
Normal file
20
nvim/lua/darcula/setup/300_mini_keymap.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.keymap").setup()
|
||||
20
nvim/lua/darcula/setup/300_mini_misc.lua
Normal file
20
nvim/lua/darcula/setup/300_mini_misc.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.misc").setup_auto_root()
|
||||
33
nvim/lua/darcula/setup/400_mini_ai.lua
Normal file
33
nvim/lua/darcula/setup/400_mini_ai.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
-- 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 spec_treesitter = require("mini.ai").gen_spec.treesitter
|
||||
require("mini.ai").setup {
|
||||
mappings = {
|
||||
around_last = "", -- disable
|
||||
inside_last = "" -- disable
|
||||
},
|
||||
custom_textobjects = {
|
||||
c = spec_treesitter({a = "@class.outer", i = "@class.inner"}),
|
||||
i = spec_treesitter({a = "@conditional.outer", i = "@conditional.inner"}),
|
||||
l = spec_treesitter({a = "@loop.outer", i = "@loop.inner"}),
|
||||
m = spec_treesitter({a = "@function.outer", i = "@function.inner"}),
|
||||
B = spec_treesitter({a = "@block.outer", i = "@block.inner"})
|
||||
}
|
||||
}
|
||||
20
nvim/lua/darcula/setup/400_mini_comment.lua
Normal file
20
nvim/lua/darcula/setup/400_mini_comment.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.comment").setup()
|
||||
41
nvim/lua/darcula/setup/400_mini_completion.lua
Normal file
41
nvim/lua/darcula/setup/400_mini_completion.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
-- 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.
|
||||
--
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
require("mini.completion").setup {
|
||||
delay = {completion = 100, info = 100, signature = 50},
|
||||
window = {
|
||||
info = {height = 25, width = 80, border = "rounded"},
|
||||
signature = {height = 25, width = 80, border = "rounded"}
|
||||
},
|
||||
lsp_completion = {
|
||||
auto_setup = true,
|
||||
source_func = "omnifunc"
|
||||
},
|
||||
fallback_action = "<C-n>",
|
||||
mappings = {
|
||||
force_twostep = "<C-Space>",
|
||||
force_fallback = "<A-Space>",
|
||||
scroll_down = "<C-f>",
|
||||
scroll_up = "<C-b>"
|
||||
}
|
||||
}
|
||||
34
nvim/lua/darcula/setup/400_mini_move.lua
Normal file
34
nvim/lua/darcula/setup/400_mini_move.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.move").setup {
|
||||
mappings = {
|
||||
left = "<C-Left>",
|
||||
right = "<C-Right>",
|
||||
down = "<C-Down>",
|
||||
up = "<C-Up>",
|
||||
line_left = "<C-Left>",
|
||||
line_right = "<C-Right>",
|
||||
line_down = "<C-Down>",
|
||||
line_up = "<C-Up>"
|
||||
},
|
||||
options = {
|
||||
reindent_linewise = true
|
||||
}
|
||||
}
|
||||
44
nvim/lua/darcula/setup/400_mini_notify.lua
Normal file
44
nvim/lua/darcula/setup/400_mini_notify.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.notify").setup {
|
||||
window = {
|
||||
config = {
|
||||
row = vim.o.lines - 3,
|
||||
col = vim.o.columns - 3,
|
||||
anchor = "SE"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
vim.notify =
|
||||
MiniNotify.make_notify(
|
||||
{
|
||||
DEBUG = {duration = 0},
|
||||
ERROR = {duration = 3500, hl_group = "DiagnosticFloatingError"},
|
||||
INFO = {duration = 3500, hl_group = "DiagnosticFloatingInfo"},
|
||||
OFF = {duration = 0},
|
||||
TRACE = {duration = 0},
|
||||
WARN = {duration = 3500, hl_group = "DiagnosticFloatingWarn"}
|
||||
}
|
||||
)
|
||||
|
||||
vim.cmd("hi! link MiniNotifyBorder NotifyINFOBorder")
|
||||
vim.cmd("hi! link MiniNotifyNormal NotifyINFOBody")
|
||||
vim.cmd("hi! link MiniNotifyTitle Number")
|
||||
20
nvim/lua/darcula/setup/400_mini_pairs.lua
Normal file
20
nvim/lua/darcula/setup/400_mini_pairs.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.pairs").setup()
|
||||
60
nvim/lua/darcula/setup/400_mini_snippets.lua
Normal file
60
nvim/lua/darcula/setup/400_mini_snippets.lua
Normal file
@@ -0,0 +1,60 @@
|
||||
-- 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.
|
||||
--
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
local snippets = require("mini.snippets")
|
||||
local gen_loader = snippets.gen_loader
|
||||
local match_strict = function(snips)
|
||||
return snippets.default_match(snips, {pattern_fuzzy = "%S+"})
|
||||
end
|
||||
|
||||
snippets.setup {
|
||||
mappings = {
|
||||
expand = "",
|
||||
jump_next = "",
|
||||
jump_prev = "",
|
||||
stop = "<Esc>"
|
||||
},
|
||||
expand = {match = match_strict},
|
||||
snippets = {
|
||||
gen_loader.from_file(
|
||||
vim.fs.joinpath(vim.fn.stdpath("config"), "snippets", "global.json")
|
||||
),
|
||||
gen_loader.from_lang()
|
||||
}
|
||||
}
|
||||
|
||||
vim.api.nvim_set_hl(
|
||||
0,
|
||||
"MiniSnippetsCurrentReplace",
|
||||
{link = "DiagnosticVirtualTextInfo"}
|
||||
)
|
||||
vim.api.nvim_set_hl(
|
||||
0,
|
||||
"MiniSnippetsFinal",
|
||||
{link = "DiagnosticVirtualTextInfo"}
|
||||
)
|
||||
vim.api.nvim_set_hl(
|
||||
0,
|
||||
"MiniSnippetsVisited",
|
||||
{link = "DiagnosticVirtualTextInfo"}
|
||||
)
|
||||
147
nvim/lua/darcula/setup/400_mini_starter.lua
Normal file
147
nvim/lua/darcula/setup/400_mini_starter.lua
Normal file
@@ -0,0 +1,147 @@
|
||||
-- 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 starter = require("mini.starter")
|
||||
|
||||
local header_cache
|
||||
local wrap_action = function(input)
|
||||
local parse_items = function(items)
|
||||
for idx, val in ipairs(items) do
|
||||
local orig_action = val.action
|
||||
items[idx].action = function()
|
||||
if type(orig_action) == "string" then
|
||||
vim.cmd(orig_action)
|
||||
elseif type(orig_action) == "function" then
|
||||
orig_action()
|
||||
end
|
||||
|
||||
header_cache = nil
|
||||
NV_Darcula_LSP_Restart()
|
||||
end
|
||||
end
|
||||
|
||||
return items
|
||||
end
|
||||
|
||||
if type(input) == "function" then
|
||||
return function()
|
||||
return parse_items(input())
|
||||
end
|
||||
end
|
||||
|
||||
return parse_items(input)
|
||||
end
|
||||
|
||||
local main_section = "Bookmarks"
|
||||
local add_line_under_sections = function(content)
|
||||
local out = {}
|
||||
|
||||
for _, line in ipairs(content) do
|
||||
table.insert(out, line)
|
||||
if line[1].type == "section" then
|
||||
table.insert(out, {{type = "empty", string = ""}})
|
||||
end
|
||||
end
|
||||
|
||||
return out
|
||||
end
|
||||
|
||||
starter.setup {
|
||||
content_hooks = {
|
||||
add_line_under_sections,
|
||||
starter.gen_hook.indexing("all", {"Builtin actions", main_section}),
|
||||
starter.gen_hook.aligning("left", "top"),
|
||||
starter.gen_hook.padding(5, 2)
|
||||
},
|
||||
evaluate_single = true,
|
||||
header = function()
|
||||
if not header_cache then
|
||||
header_cache =
|
||||
table.concat(require("darcula.utils.fortune").cowsay(), "\n")
|
||||
end
|
||||
return header_cache
|
||||
end,
|
||||
items = {
|
||||
wrap_action(starter.sections.builtin_actions()),
|
||||
wrap_action(starter.sections.recent_files(5, true)),
|
||||
wrap_action(starter.sections.recent_files(5, false)),
|
||||
wrap_action(
|
||||
{
|
||||
{
|
||||
action = "e " ..
|
||||
vim.fs.joinpath(vim.env.HOME, ".desktop", "scripts", "setup.sh"),
|
||||
name = "Desktop (" ..
|
||||
vim.fs.joinpath(vim.env.HOME, ".desktop", "scripts", "setup.sh") ..
|
||||
")",
|
||||
section = main_section
|
||||
},
|
||||
{
|
||||
action = "e " .. vim.fs.joinpath(vim.fn.stdpath("config"), "init.lua"),
|
||||
name = "Lua Configuration (" ..
|
||||
vim.fs.joinpath(vim.fn.stdpath("config"), "init.lua") .. ")",
|
||||
section = main_section
|
||||
},
|
||||
{
|
||||
action = "e " ..
|
||||
vim.fs.joinpath(
|
||||
vim.fn.stdpath("config"),
|
||||
"lua",
|
||||
"darcula",
|
||||
"keymaps.lua"
|
||||
),
|
||||
name = "Maps (" ..
|
||||
vim.fs.joinpath(
|
||||
vim.fn.stdpath("config"),
|
||||
"lua",
|
||||
"darcula",
|
||||
"keymaps.lua"
|
||||
) ..
|
||||
")",
|
||||
section = main_section
|
||||
},
|
||||
{
|
||||
action = "e " ..
|
||||
vim.fs.joinpath(
|
||||
vim.fn.stdpath("config"),
|
||||
"lua",
|
||||
"darcula",
|
||||
"setup",
|
||||
"305_mini_starter.lua"
|
||||
),
|
||||
name = "Starter (" ..
|
||||
vim.fs.joinpath(
|
||||
vim.fn.stdpath("config"),
|
||||
"lua",
|
||||
"darcula",
|
||||
"setup",
|
||||
"305_mini_starter.lua"
|
||||
) ..
|
||||
")",
|
||||
section = main_section
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
footer = ""
|
||||
}
|
||||
|
||||
vim.cmd("hi! link MiniStarterHeader Comment")
|
||||
vim.cmd("hi! link MiniStarterItem Comment")
|
||||
vim.cmd("hi! link MiniStarterItemPrefix Normal")
|
||||
vim.cmd("hi! link MiniStarterQuery Search")
|
||||
20
nvim/lua/darcula/setup/400_mini_statusline.lua
Normal file
20
nvim/lua/darcula/setup/400_mini_statusline.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.statusline").setup()
|
||||
37
nvim/lua/darcula/setup/400_mini_surround.lua
Normal file
37
nvim/lua/darcula/setup/400_mini_surround.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
-- 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.
|
||||
--
|
||||
require("mini.surround").setup {
|
||||
custom_surroundings = nil,
|
||||
highlight_duration = 500,
|
||||
mappings = {
|
||||
add = "S",
|
||||
delete = "ds",
|
||||
find = "Sf",
|
||||
find_left = "SF",
|
||||
highlight = "Sh",
|
||||
replace = "cs",
|
||||
suffix_last = "l",
|
||||
suffix_next = "n"
|
||||
},
|
||||
n_lines = 20,
|
||||
respect_selection_type = false,
|
||||
search_method = "cover",
|
||||
silent = false
|
||||
}
|
||||
20
nvim/lua/darcula/setup/500_colorizer.lua
Normal file
20
nvim/lua/darcula/setup/500_colorizer.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("colorizer").setup()
|
||||
20
nvim/lua/darcula/setup/500_cppman.lua
Normal file
20
nvim/lua/darcula/setup/500_cppman.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("cppman").setup {win = {split = "right"}}
|
||||
177
nvim/lua/darcula/setup/500_dap.lua
Normal file
177
nvim/lua/darcula/setup/500_dap.lua
Normal file
@@ -0,0 +1,177 @@
|
||||
-- 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 dap = require("dap")
|
||||
local utils = require("darcula.utils")
|
||||
local utils_os = require("darcula.utils.os")
|
||||
|
||||
-- DOES NOT CURRENTLY WORK
|
||||
-- dap.adapters.cppvsdbg = {
|
||||
-- id = "cppvsdbg",
|
||||
-- type = "executable",
|
||||
-- command = vim.fs.joinpath(
|
||||
-- vim.fn.stdpath("data"),
|
||||
-- "dap", "cpp", "extension", "debugAdapters", "vsdbg", "bin", "vsdbg.exe"
|
||||
-- ),
|
||||
-- args = {
|
||||
-- "--interpreter=vscode"
|
||||
-- },
|
||||
-- options = {
|
||||
-- detached = false
|
||||
-- }
|
||||
-- }
|
||||
dap.adapters.cppdbg = {
|
||||
id = "cppdbg",
|
||||
type = "executable",
|
||||
command = vim.fs.joinpath(
|
||||
vim.fn.stdpath("data"),
|
||||
"dap",
|
||||
"cpp",
|
||||
"extension",
|
||||
"debugAdapters",
|
||||
"bin",
|
||||
utils.iff(utils_os.is_windows, "OpenDebugAD7.exe", "OpenDebugAD7")
|
||||
),
|
||||
options = {
|
||||
detached = false
|
||||
}
|
||||
}
|
||||
|
||||
dap.adapters.dart = {
|
||||
type = "executable",
|
||||
command = "dart",
|
||||
args = {"debug_adapter"}
|
||||
}
|
||||
dap.adapters.flutter = {
|
||||
type = "executable",
|
||||
command = "flutter",
|
||||
args = {"debug_adapter"}
|
||||
}
|
||||
dap.configurations.dart = {
|
||||
{
|
||||
type = "dart",
|
||||
request = "launch",
|
||||
name = "Launch dart",
|
||||
dartSdkPath = vim.fs.joinpath(
|
||||
utils.iff(utils_os.is_windows, vim.env.NV_DARCULA_DRIVE, vim.env.HOME),
|
||||
"flutter",
|
||||
"bin",
|
||||
"cache",
|
||||
"dart-sdk",
|
||||
"bin",
|
||||
"dart"
|
||||
),
|
||||
flutterSdkPath = vim.fs.joinpath(
|
||||
utils.iff(utils_os.is_windows, vim.env.NV_DARCULA_DRIVE, vim.env.HOME),
|
||||
"flutter",
|
||||
"bin",
|
||||
"flutter"
|
||||
),
|
||||
program = "${workspaceFolder}/lib/main.dart", -- ensure this is correct
|
||||
cwd = "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
type = "flutter",
|
||||
request = "launch",
|
||||
name = "Launch flutter",
|
||||
dartSdkPath = vim.fs.joinpath(
|
||||
utils.iff(utils_os.is_windows, vim.env.NV_DARCULA_DRIVE, vim.env.HOME),
|
||||
"flutter",
|
||||
"bin",
|
||||
"cache",
|
||||
"dart-sdk",
|
||||
"bin",
|
||||
"dart"
|
||||
),
|
||||
flutterSdkPath = vim.fs.joinpath(
|
||||
utils.iff(utils_os.is_windows, vim.env.NV_DARCULA_DRIVE, vim.env.HOME),
|
||||
"flutter",
|
||||
"bin",
|
||||
"flutter"
|
||||
),
|
||||
program = "${workspaceFolder}/lib/main.dart", -- ensure this is correct
|
||||
cwd = "${workspaceFolder}"
|
||||
}
|
||||
}
|
||||
|
||||
require("dap-go").setup()
|
||||
|
||||
local symbols = require("darcula.utils.symbols")
|
||||
vim.fn.sign_define(
|
||||
"DapBreakpoint",
|
||||
{
|
||||
text = symbols.debug.breakpoint,
|
||||
texthl = "ErrorSign",
|
||||
linehl = "",
|
||||
numhl = ""
|
||||
}
|
||||
)
|
||||
|
||||
vim.fn.sign_define(
|
||||
"DapBreakpointCondition",
|
||||
{
|
||||
text = symbols.debug.conditional_breakpoint,
|
||||
texthl = "ErrorSign",
|
||||
linehl = "",
|
||||
numhl = ""
|
||||
}
|
||||
)
|
||||
|
||||
vim.fn.sign_define(
|
||||
"DapBreakpointRejected",
|
||||
{
|
||||
text = symbols.debug.breakpoint_disabled,
|
||||
texthl = "ErrorSign",
|
||||
linehl = "",
|
||||
numhl = ""
|
||||
}
|
||||
)
|
||||
|
||||
vim.fn.sign_define(
|
||||
"DapLogPoint",
|
||||
{
|
||||
text = symbols.debug.breakpoint,
|
||||
texthl = "WarningSign",
|
||||
linehl = "",
|
||||
numhl = ""
|
||||
}
|
||||
)
|
||||
|
||||
vim.fn.sign_define(
|
||||
"DapStopped",
|
||||
{
|
||||
text = symbols.debug.current_line,
|
||||
texthl = "WarningSign",
|
||||
linehl = "",
|
||||
numhl = ""
|
||||
}
|
||||
)
|
||||
|
||||
local dapui = require("dapui")
|
||||
dapui.setup()
|
||||
|
||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated["dapui_config"] = function()
|
||||
dapui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited["dapui_config"] = function()
|
||||
dapui.close()
|
||||
end
|
||||
20
nvim/lua/darcula/setup/500_dispatch.lua
Normal file
20
nvim/lua/darcula/setup/500_dispatch.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
vim.g.dispatch_no_maps = 1
|
||||
30
nvim/lua/darcula/setup/500_dressing.lua
Normal file
30
nvim/lua/darcula/setup/500_dressing.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
-- 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.
|
||||
--
|
||||
require("dressing").setup {
|
||||
input = {
|
||||
relative = "editor",
|
||||
win_options = {
|
||||
winhighlight = "Title:Pmenu"
|
||||
}
|
||||
},
|
||||
select = {
|
||||
relative = "editor"
|
||||
}
|
||||
}
|
||||
20
nvim/lua/darcula/setup/500_flutter.lua
Normal file
20
nvim/lua/darcula/setup/500_flutter.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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.
|
||||
--
|
||||
require("darcula.flutter").setup({use_coc = NV_DARCULA_ENABLE_COC})
|
||||
24
nvim/lua/darcula/setup/500_flutter_tools.lua
Normal file
24
nvim/lua/darcula/setup/500_flutter_tools.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
-- 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.
|
||||
--
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
require("flutter-tools").setup {}
|
||||
69
nvim/lua/darcula/setup/500_formatter.lua
Normal file
69
nvim/lua/darcula/setup/500_formatter.lua
Normal file
@@ -0,0 +1,69 @@
|
||||
-- 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 formatter_util = require("formatter.util")
|
||||
|
||||
require("formatter").setup {
|
||||
logging = true,
|
||||
log_level = vim.log.levels.WARN,
|
||||
filetype = {
|
||||
c = {require("formatter.filetypes.c").clangformat},
|
||||
cpp = {require("formatter.filetypes.cpp").clangformat},
|
||||
dart = {require("formatter.filetypes.dart").dartformat},
|
||||
go = {require("formatter.filetypes.go").gofumpt},
|
||||
java = {
|
||||
function()
|
||||
return {
|
||||
exe = "google-java-format",
|
||||
args = {
|
||||
formatter_util.escape_path(
|
||||
formatter_util.get_current_buffer_file_path()
|
||||
),
|
||||
"--replace"
|
||||
},
|
||||
stdin = true
|
||||
}
|
||||
end
|
||||
},
|
||||
javascript = {require("formatter.filetypes.javascript").prettier},
|
||||
javascriptreact = {require("formatter.filetypes.javascriptreact").prettier},
|
||||
json = {require("formatter.filetypes.json").prettier},
|
||||
lua = {
|
||||
require("formatter.filetypes.lua").luafmt,
|
||||
function()
|
||||
return {
|
||||
exe = "luafmt",
|
||||
args = {
|
||||
"--stdin",
|
||||
"-l",
|
||||
"80",
|
||||
"-i",
|
||||
"2"
|
||||
},
|
||||
stdin = true
|
||||
}
|
||||
end
|
||||
},
|
||||
python = {require("formatter.filetypes.python").yapf},
|
||||
sh = {require("formatter.filetypes.sh").shfmt},
|
||||
typescript = {require("formatter.filetypes.typescript").prettier},
|
||||
typescriptreact = {require("formatter.filetypes.typescriptreact").prettier},
|
||||
xml = {require("formatter.filetypes.xml").tidy}
|
||||
}
|
||||
}
|
||||
41
nvim/lua/darcula/setup/500_gitsigns.lua
Normal file
41
nvim/lua/darcula/setup/500_gitsigns.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
-- 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 keymaps = require("darcula.keymaps")
|
||||
local symbols = require("darcula.utils.symbols")
|
||||
|
||||
require("gitsigns").setup {
|
||||
current_line_blame = NV_DARCULA_ENABLE_GIT_LINE_BLAME,
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = "eol",
|
||||
delay = 1000,
|
||||
ignore_whitespace = false
|
||||
},
|
||||
current_line_blame_formatter = symbols.git.blame ..
|
||||
" <author>, <author_time:%Y-%m-%d> - <summary>",
|
||||
linehl = false,
|
||||
numhl = false,
|
||||
preview_config = {border = "rounded"},
|
||||
signcolumn = false,
|
||||
word_diff = false,
|
||||
on_attach = function(bufnr)
|
||||
keymaps.gitsigns(bufnr)
|
||||
end
|
||||
}
|
||||
36
nvim/lua/darcula/setup/500_haven.lua
Normal file
36
nvim/lua/darcula/setup/500_haven.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
-- 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_os = require("darcula.utils.os")
|
||||
|
||||
require("darcula.haven").setup {
|
||||
exclusions = {
|
||||
function(path, _)
|
||||
local tmp = vim.env.TEMP or vim.env.TMP
|
||||
if tmp ~= nil and tmp:len() > 0 then
|
||||
if utils_os.is_windows then
|
||||
return path:lower():starts_with(tmp:lower())
|
||||
end
|
||||
|
||||
return path:starts_with(tmp)
|
||||
end
|
||||
return false
|
||||
end
|
||||
}
|
||||
}
|
||||
56
nvim/lua/darcula/setup/500_lightbulb.lua
Normal file
56
nvim/lua/darcula/setup/500_lightbulb.lua
Normal file
@@ -0,0 +1,56 @@
|
||||
-- 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.
|
||||
--
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
local symbols = require("darcula.utils.symbols")
|
||||
|
||||
require("nvim-lightbulb").setup(
|
||||
{
|
||||
hide_in_unfocused_buffer = true,
|
||||
link_highlights = false,
|
||||
sign = {
|
||||
enabled = true,
|
||||
text = symbols.status.info,
|
||||
hl = "WarningSign"
|
||||
},
|
||||
virtual_text = {
|
||||
enabled = false
|
||||
},
|
||||
float = {
|
||||
enabled = false
|
||||
},
|
||||
status_text = {
|
||||
enabled = false
|
||||
},
|
||||
number = {
|
||||
enabled = false
|
||||
},
|
||||
line = {
|
||||
enabled = false
|
||||
},
|
||||
autocmd = {
|
||||
enabled = true,
|
||||
events = {"CursorHold", "CursorHoldI"},
|
||||
pattern = {"*"}
|
||||
}
|
||||
}
|
||||
)
|
||||
77
nvim/lua/darcula/setup/500_nvim_tree.lua
Normal file
77
nvim/lua/darcula/setup/500_nvim_tree.lua
Normal file
@@ -0,0 +1,77 @@
|
||||
-- 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 keymaps = require("darcula.keymaps")
|
||||
local symbols = require("darcula.utils.symbols")
|
||||
|
||||
vim.g.nvim_tree_refresh_wait = 250
|
||||
|
||||
require "nvim-tree".setup {
|
||||
diagnostics = {
|
||||
enable = false,
|
||||
icons = {
|
||||
error = symbols.status.errors,
|
||||
hint = symbols.status.hints,
|
||||
info = symbols.status.info,
|
||||
warning = symbols.status.warnings
|
||||
}
|
||||
},
|
||||
filters = {dotfiles = not NV_DARCULA_ENABLE_HIDDEN_FILES},
|
||||
git = {enable = true, ignore = false, timeout = 5000},
|
||||
hijack_directories = {enable = false, auto_open = false},
|
||||
on_attach = keymaps.nvim_tree_on_attach,
|
||||
renderer = {
|
||||
icons = {
|
||||
show = {file = true, folder = true, folder_arrow = false, git = true},
|
||||
glyphs = {
|
||||
default = symbols.file,
|
||||
symlink = symbols.file,
|
||||
folder = {
|
||||
arrow_open = symbols.directory.expanded,
|
||||
arrow_closed = symbols.directory.collapsed,
|
||||
default = symbols.directory.directory,
|
||||
empty = symbols.directory.directory,
|
||||
empty_open = symbols.directory.directory_open,
|
||||
open = symbols.directory.directory_open,
|
||||
symlink = symbols.directory.directory,
|
||||
symlink_open = symbols.directory.directory_open
|
||||
},
|
||||
git = {
|
||||
unstaged = symbols.git.unstaged,
|
||||
staged = symbols.git.staged,
|
||||
unmerged = symbols.git.unmerged,
|
||||
renamed = symbols.git.renamed,
|
||||
untracked = symbols.git.untracked,
|
||||
deleted = symbols.git.deleted,
|
||||
ignored = symbols.git.ignored
|
||||
}
|
||||
}
|
||||
},
|
||||
special_files = {},
|
||||
indent_markers = {
|
||||
enable = false,
|
||||
icons = {corner = "└ ", edge = "│ ", none = " "}
|
||||
}
|
||||
},
|
||||
respect_buf_cwd = false,
|
||||
sync_root_with_cwd = true,
|
||||
update_cwd = false,
|
||||
update_focused_file = {enable = true, update_root = false},
|
||||
view = {width = 35}
|
||||
}
|
||||
28
nvim/lua/darcula/setup/500_scrollview.lua
Normal file
28
nvim/lua/darcula/setup/500_scrollview.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
-- 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")
|
||||
local utils_os = require("darcula.utils.os")
|
||||
|
||||
require("scrollview").setup {
|
||||
winblend = utils.iff(utils_os.is_windows, 85, 90),
|
||||
winblend_gui = utils.iff(utils_os.is_windows, 85, 90),
|
||||
current_only = true,
|
||||
signs_on_startup = {}
|
||||
}
|
||||
101
nvim/lua/darcula/setup/500_telescope.lua
Normal file
101
nvim/lua/darcula/setup/500_telescope.lua
Normal file
@@ -0,0 +1,101 @@
|
||||
-- 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 symbols = require("darcula.utils.symbols")
|
||||
|
||||
local telescope_actions = require("telescope.actions")
|
||||
require("telescope").setup {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
"--color=never",
|
||||
"--no-heading",
|
||||
"--with-filename",
|
||||
"--line-number",
|
||||
"--column",
|
||||
"--hidden",
|
||||
"--smart-case"
|
||||
},
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-b>"] = telescope_actions.preview_scrolling_up,
|
||||
["<C-f>"] = telescope_actions.preview_scrolling_down,
|
||||
["<C-d>"] = nil,
|
||||
["<C-u>"] = nil
|
||||
},
|
||||
n = {
|
||||
["<C-b>"] = telescope_actions.preview_scrolling_up,
|
||||
["<C-f>"] = telescope_actions.preview_scrolling_down,
|
||||
["<C-d>"] = nil,
|
||||
["<C-u>"] = nil
|
||||
}
|
||||
},
|
||||
prompt_prefix = " " .. symbols.search .. " ",
|
||||
selection_caret = " ",
|
||||
entry_prefix = " ",
|
||||
initial_mode = "normal",
|
||||
selection_strategy = "reset",
|
||||
sorting_strategy = "descending",
|
||||
layout_strategy = "horizontal",
|
||||
layout_config = {
|
||||
horizontal = {mirror = false},
|
||||
vertical = {mirror = false},
|
||||
height = 0.7,
|
||||
width = 0.8,
|
||||
preview_cutoff = 120
|
||||
},
|
||||
file_sorter = require "telescope.sorters".get_fuzzy_file,
|
||||
file_ignore_patterns = {},
|
||||
generic_sorter = require "telescope.sorters".get_generic_fuzzy_sorter,
|
||||
path_display = {smart = 1},
|
||||
winblend = 0,
|
||||
border = true,
|
||||
borderchars = {" ", " ", " ", " ", " ", " ", " ", " "},
|
||||
color_devicons = true,
|
||||
use_less = true,
|
||||
set_env = {["COLORTERM"] = "truecolor"}, -- default = nil,
|
||||
file_previewer = require "telescope.previewers".vim_buffer_cat.new,
|
||||
grep_previewer = require "telescope.previewers".vim_buffer_vimgrep.new,
|
||||
qflist_previewer = require "telescope.previewers".vim_buffer_qflist.new,
|
||||
-- Developer configurations: Not meant for general override
|
||||
buffer_previewer_maker = require "telescope.previewers".buffer_previewer_maker
|
||||
},
|
||||
extensions = {
|
||||
fzf = {
|
||||
fuzzy = true,
|
||||
override_generic_sorter = true,
|
||||
override_file_sorter = true,
|
||||
case_mode = "smart_case"
|
||||
},
|
||||
["ui-select"] = require("telescope.themes").get_dropdown(
|
||||
{
|
||||
width = 0.6,
|
||||
previewer = false
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
require("telescope").load_extension("ui-select")
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
require("telescope").load_extension("coc")
|
||||
end
|
||||
if not NV_DARCULA_ENABLE_COC then
|
||||
require("telescope").load_extension("flutter")
|
||||
end
|
||||
31
nvim/lua/darcula/setup/500_treesitter.lua
Normal file
31
nvim/lua/darcula/setup/500_treesitter.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
-- 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.
|
||||
--
|
||||
require("nvim-treesitter").setup {
|
||||
install_dir = vim.fs.joinpath(vim.fn.stdpath("data"), "site")
|
||||
}
|
||||
|
||||
require("nvim-treesitter").install(NV_DARCULA_TREESITTER_LIST)
|
||||
|
||||
vim.defer_fn(
|
||||
function()
|
||||
vim.cmd("TSUpdate")
|
||||
end,
|
||||
1000
|
||||
)
|
||||
24
nvim/lua/darcula/setup/500_vim_dart_plugin.lua
Normal file
24
nvim/lua/darcula/setup/500_vim_dart_plugin.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
-- 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.
|
||||
--
|
||||
if not NV_DARCULA_ENABLE_COC then
|
||||
return
|
||||
end
|
||||
|
||||
vim.g.dart_style_guide = 2
|
||||
27
nvim/lua/darcula/setup/500_window_picker.lua
Normal file
27
nvim/lua/darcula/setup/500_window_picker.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
-- 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.
|
||||
--
|
||||
require "window-picker".setup {
|
||||
keys = "alskdjfhgwoeiruty",
|
||||
swap_shift = true,
|
||||
exclude = {qf = true, NvimTree = true, aerial = true},
|
||||
flash_duration = 300
|
||||
}
|
||||
|
||||
vim.g.choosewin_blink_on_land = 1
|
||||
Reference in New Issue
Block a user