chore: remove local/unused plugins and refactor core configs

- Remove locally-developed or rarely-used plugin packages (codetyper, curls, edgy, flash) to reduce maintenance surface, external deps, and startup cost; these were local/optional and caused complexity.
- Clean up stale/keymap docs and small duplicate or experimental files (keymaps/README.md, sudoku keymaps).
- Apply targeted refactors to core modules for readability, robustness, and to align Java/DAP/Copilot integrations with local environment.
- Removed plugin modules:
  - lua/cargdev/plugins/codetyper.lua (deleted)
  - lua/cargdev/plugins/curls.lua (deleted)
  - lua/cargdev/plugins/edgy.lua (deleted)
  - lua/cargdev/plugins/flash.lua (deleted)
  - Added .codetyper to .gitignore
- Java / JDTLS:
  - ftplugin/java.lua: pin jdtls java executable to JDK 25, switch to mac_arm config, enable LSP formatter and declare multiple runtimes (JavaSE-17, JavaSE-25).
- Notifications & startup UX:
  - lua/cargdev/core/function/notification_manager.lua: large refactor — use local aliases (api, cmd, loop, opt), improved docs, dashboard-aware handling, nvim-notify fallback, safer tracking and cleanup of notifications.
- Utilities & monitors:
  - lua/cargdev/core/function/performance_monitor.lua: use local references, better notify usage and docs.
  - lua/cargdev/core/function/project_commands.lua: add docs, use local api/fn/notify, clearer RunProject/DebugProject commands.
- Terminal helper:
  - lua/cargdev/core/function/openTerminal.lua: add module docs and small refactor to use local cmd/api aliases and expose keymap.
- Keymaps & docs:
  - Removed stale keymaps README (lua/cargdev/core/keymaps/README.md).
  - Reworked many keymap files: docstrings, renamed/moved mappings to avoid conflicts, moved DAP mappings into dap plugin config, removed/disabled experimental mappings (see files under lua/cargdev/core/keymaps/*).
  - Adjusted quick keybindings and prefixes to reduce overlaps.
- Plugins & integrations:
  - lua/cargdev/plugins/formatting.lua: disabled google-java-format fallback for java (prefer JDTLS).
  - lua/cargdev/plugins/dap.lua: added additional DAP configs (Bun launch, attach helper), moved/registered dap keymaps here.
  - lua/cargdev/plugins/copilot.lua: reorganized Copilot/Copilot-cmp/CopilotChat config and added copilot source to nvim-cmp.
  - lua/cargdev/plugins/nvim-cmp.lua: added copilot source and small formatting tweak.
This commit is contained in:
2026-02-10 12:17:36 -05:00
parent 832a664fa0
commit 06dbe4d892
34 changed files with 899 additions and 950 deletions

View File

@@ -1,125 +0,0 @@
-- ============================================================================
-- CODETYPER.NVIM: AI-powered coding assistant plugin
-- ============================================================================
-- A local development plugin that provides AI-assisted coding capabilities
-- using various LLM providers (Ollama, Claude, OpenAI, Gemini, Copilot).
-- Features include: inline code transformation with /@ @/ tags, Ask panel
-- for interactive queries, Agent panel for autonomous coding tasks,
-- Tree-sitter integration for scope detection, and diff review.
--
-- Key keymaps:
-- <leader>co - Open Coder view <leader>ca - Open Ask panel
-- <leader>ct - Toggle Coder view <leader>cg - Open Agent panel
-- <leader>cp - Process prompt <leader>cd - Open Diff Review
-- <leader>ctt - Transform tag at cursor (also works in visual mode)
-- ============================================================================
-- Get local config (loaded in core/init.lua)
local local_cfg = vim.g.cargdev_local or {}
-- Skip plugin if local config is missing required values
if not local_cfg.CODE_TYPER_DIR then
return {}
end
return {
-- Codetyper.nvim - AI-powered coding partner
-- Local development version
dir = local_cfg.CODE_TYPER_DIR,
name = "codetyper.nvim",
lazy = false, -- Load on startup to create .coder folder
priority = 100, -- Load early
dependencies = {
"nvim-lua/plenary.nvim", -- Required: async utilities
-- "nvim-treesitter/nvim-treesitter", -- Required: scope detection via Tree-sitter
-- "nvim-treesitter/nvim-treesitter-textobjects", -- Optional: better text object support
"MunifTanjim/nui.nvim", -- Optional: UI components
},
event = {
"BufReadPre *.coder.*",
"BufNewFile *.coder.*",
},
cmd = {
"Coder",
"CoderOpen",
"CoderClose",
"CoderToggle",
"CoderProcess",
"CoderTree",
"CoderTreeView",
-- Ask commands
"CoderAsk",
"CoderAskToggle",
"CoderAskClear",
-- Agent commands
"CoderAgent",
"CoderAgentToggle",
"CoderAgentStop",
"CoderMode",
},
keys = {
-- Coder view commands
{ "<leader>co", "<cmd>Coder open<cr>", desc = "Coder: Open view" },
{ "<leader>cC", "<cmd>Coder close<cr>", desc = "Coder: Close view" },
{ "<leader>ct", "<cmd>Coder toggle<cr>", desc = "Coder: Toggle view" },
{ "<leader>cp", "<cmd>Coder process<cr>", desc = "Coder: Process prompt" },
{ "<leader>cs", "<cmd>Coder status<cr>", desc = "Coder: Show status" },
{ "<leader>cf", "<cmd>Coder focus<cr>", desc = "Coder: Switch focus" },
{ "<leader>cv", "<cmd>Coder tree-view<cr>", desc = "Coder: View tree" },
{ "<leader>cr", "<cmd>Coder tree<cr>", desc = "Coder: Refresh tree" },
-- Ask panel commands
{ "<leader>ca", "<cmd>Coder ask<cr>", desc = "Coder: Open Ask panel" },
{ "<leader>cA", "<cmd>Coder ask-toggle<cr>", desc = "Coder: Toggle Ask panel" },
{ "<leader>cx", "<cmd>Coder ask-clear<cr>", desc = "Coder: Clear Ask history" },
-- Agent panel commands
{ "<leader>cg", "<cmd>Coder agent<cr>", desc = "Coder: Open Agent panel" },
{ "<leader>cG", "<cmd>Coder agent-toggle<cr>", desc = "Coder: Toggle Agent panel" },
{ "<leader>cS", "<cmd>Coder agent-stop<cr>", desc = "Coder: Stop Agent" },
{ "<leader>cd", "<cmd>CoderDiffReview<cr>", desc = "Coder: Open Diff Review" },
-- Transform commands (inline /@ @/ replacement)
{ "<leader>ctt", mode = "n", desc = "Coder: Transform tag at cursor" },
{ "<leader>ctt", mode = "v", desc = "Coder: Transform selected tags" },
{ "<leader>ctT", "<cmd>Coder transform<cr>", desc = "Coder: Transform all tags" },
},
config = function()
require("codetyper").setup({
llm = {
-- Available providers: "ollama", "claude", "openai", "gemini", "copilot"
provider = "copilot", -- Using GitHub Copilot
-- Ollama (local LLM)
ollama = {
host = "http://localhost:11434",
model = "deepseek-coder:6.7b",
-- model = "codellama:7b",
-- model = "qwen2.5-coder:7b",
},
-- GitHub Copilot (uses OAuth from copilot.vim/copilot.lua)
copilot = {
model = "gpt-4o", -- or "gpt-4", "gpt-3.5-turbo"
},
},
window = {
width = 0.25, -- 1/4 of window
position = "left",
border = "rounded",
},
patterns = {
open_tag = "/@",
close_tag = "@/",
file_pattern = "*.coder.*",
},
auto_gitignore = true,
auto_open_ask = false, -- Don't auto-open Ask panel on startup
scheduler = {
enabled = true,
ollama_scout = false, -- Disabled since using Copilot directly
escalation_threshold = 0.7,
max_concurrent = 2,
completion_delay_ms = 100, -- Delay before checking completion visibility
apply_delay_ms = 2000, -- Wait 2 seconds before applying code
},
})
end,
}

View File

@@ -1,27 +1,33 @@
-- ============================================================================
-- COPILOT: GitHub AI code completion and chat
-- ============================================================================
-- AI-powered code suggestions that appear as ghost text while typing.
-- Includes copilot-cmp for completion menu integration and codecompanion
-- for AI chat/refactoring. Disabled for LaTeX files. Accept with <C-l>.
-- AI-powered code suggestions (ghost text + cmp menu) and chat.
-- Autocomplete: <C-l> accept ghost text, also shows in cmp menu.
-- Chat: <leader>cc toggle, <leader>cq quick chat, <leader>ce explain.
--
-- MODEL SELECTION:
-- Chat: :CopilotChatModels (pick from gpt-4o, claude-sonnet-4, o3-mini, etc.)
-- Autocomplete: controlled server-side by GitHub, not user-selectable.
-- ============================================================================
return {
-- Copilot core: ghost text suggestions + LSP backend
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({
copilot_model = "gpt-41-copilot",
panel = {
enabled = true,
auto_refresh = false,
layout = {
position = "bottom", -- | top | left | right
position = "bottom",
ratio = 0.4,
},
},
suggestion = {
enabled = true, -- Codetyper will use copilot when available
enabled = true,
auto_trigger = true,
debounce = 75,
keymap = {
@@ -39,10 +45,10 @@ return {
hgcommit = true,
svn = true,
cvs = true,
tex = false, -- Disable Copilot for LaTeX files by default
tex = false,
["."] = true,
},
copilot_node_command = "node", -- Node.js version must be > 16.x
copilot_node_command = "node",
server_opts_overrides = {},
})
@@ -50,18 +56,18 @@ return {
vim.api.nvim_create_autocmd({ "FileType", "BufEnter" }, {
pattern = "tex",
callback = function()
-- Safely dismiss any active suggestions
local ok, suggestion = pcall(require, "copilot.suggestion")
if ok and suggestion and suggestion.is_visible() then
suggestion.dismiss()
end
-- Disable Copilot for this buffer
vim.cmd("Copilot disable")
end,
desc = "Disable Copilot for LaTeX files",
})
end,
},
-- Copilot CMP: adds Copilot as a completion source in nvim-cmp menu
{
"zbirenbaum/copilot-cmp",
dependencies = { "zbirenbaum/copilot.lua" },
@@ -69,28 +75,58 @@ return {
require("copilot_cmp").setup()
end,
},
-- CopilotChat: full chat interface with model selection
{
"olimorris/codecompanion.nvim",
"CopilotC-Nvim/CopilotChat.nvim",
dependencies = {
"zbirenbaum/copilot.lua",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
},
cmd = { "CodeCompanion" },
build = "make tiktoken",
cmd = {
"CopilotChat",
"CopilotChatToggle",
"CopilotChatModels",
"CopilotChatExplain",
"CopilotChatReview",
"CopilotChatFix",
"CopilotChatOptimize",
"CopilotChatDocs",
"CopilotChatTests",
"CopilotChatCommit",
},
keys = {
{ "<leader>cc", "<cmd>CopilotChatToggle<cr>", desc = "CopilotChat: Toggle chat window" },
{ "<leader>cq", function()
local input = vim.fn.input("Quick Chat: ")
if input ~= "" then
require("CopilotChat").ask(input, { selection = require("CopilotChat.select").buffer })
end
end, desc = "CopilotChat: Quick chat (whole buffer)" },
{ "<leader>ce", "<cmd>CopilotChatExplain<cr>", mode = { "n", "v" }, desc = "CopilotChat: Explain code" },
{ "<leader>cr", "<cmd>CopilotChatReview<cr>", mode = { "n", "v" }, desc = "CopilotChat: Review code" },
{ "<leader>cf", "<cmd>CopilotChatFix<cr>", mode = { "n", "v" }, desc = "CopilotChat: Fix code" },
{ "<leader>co", "<cmd>CopilotChatOptimize<cr>", mode = { "n", "v" }, desc = "CopilotChat: Optimize code" },
{ "<leader>cd", "<cmd>CopilotChatDocs<cr>", mode = { "n", "v" }, desc = "CopilotChat: Generate docs" },
{ "<leader>ct", "<cmd>CopilotChatTests<cr>", mode = { "n", "v" }, desc = "CopilotChat: Generate tests" },
{ "<leader>cm", "<cmd>CopilotChatModels<cr>", desc = "CopilotChat: Select model" },
},
config = function()
require("codecompanion").setup({
-- Use GitHub Copilot as the provider
providers = {
copilot = {
enabled = true,
},
require("CopilotChat").setup({
-- Default model (change with :CopilotChatModels at runtime)
-- Options include: gpt-4o, claude-sonnet-4, o3-mini, gemini-2.0-flash, etc.
model = "claude-sonnet-4",
window = {
layout = "vertical",
width = 0.35,
border = "rounded",
},
-- Configure the UI
ui = {
window = {
width = 0.8,
height = 0.8,
},
mappings = {
complete = { insert = "<Tab>" },
close = { normal = "q", insert = "<C-c>" },
reset = { normal = "<C-x>", insert = "<C-x>" },
submit_prompt = { normal = "<CR>", insert = "<C-s>" },
},
})
end,

View File

@@ -1,87 +0,0 @@
-- ============================================================================
-- REST.NVIM: HTTP client for making API requests from Neovim
-- ============================================================================
-- A fork of rest.nvim that allows executing HTTP requests directly from
-- .http files within Neovim. Features include request highlighting,
-- automatic response formatting, cookie management, and environment
-- variable support. Requires LuaRocks dependencies: mimetypes and xml2lua.
--
-- Key UI keybinds:
-- H - Navigate to previous response
-- L - Navigate to next response
-- ============================================================================
return {
"CarGDev/rest.nvim",
build = function()
-- Install LuaRocks dependencies for Lua 5.1 (Neovim uses LuaJIT which is Lua 5.1 compatible)
local packages = { "mimetypes", "xml2lua" }
for _, pkg in ipairs(packages) do
local result = vim.fn.system("luarocks install --local --lua-version=5.1 " .. pkg .. " 2>&1")
if vim.v.shell_error ~= 0 and not result:match("already installed") then
vim.notify("Warning: Failed to install " .. pkg .. ": " .. result, vim.log.levels.WARN)
end
end
end,
dependencies = {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
table.insert(opts.ensure_installed, "http")
end,
},
config = function()
-- Verify LuaRocks dependencies are available
local function check_dependency(name)
local success = pcall(require, name)
if not success then
vim.notify(
string.format(
"rest.nvim: Missing dependency '%s'. Please run: luarocks install --local %s",
name,
name
),
vim.log.levels.WARN
)
end
return success
end
-- Check for required dependencies
check_dependency("mimetypes")
check_dependency("xml2lua")
-- Basic configuration for rest.nvim
vim.g.rest_nvim = {
-- Enable request highlighting
highlight = {
enable = true,
timeout = 750,
},
-- Enable response formatting
response = {
hooks = {
format = true,
decode_url = true,
},
},
-- Enable cookies
cookies = {
enable = true,
},
-- Enable environment variables
env = {
enable = true,
pattern = ".*%.env.*",
},
-- UI configuration
ui = {
winbar = true,
keybinds = {
prev = "H",
next = "L",
},
},
}
end,
}

View File

@@ -88,7 +88,9 @@ return {
require("mason-nvim-dap").setup({
ensure_installed = { "python", "js", "javadbg", "javatest" },
automatic_installation = true,
handlers = {},
handlers = {
firefox = function() end, -- Disable Firefox auto-config for TS/JS
},
})
-- 🔍 Virtual Text
@@ -232,6 +234,20 @@ return {
}
dap.configurations.typescript = {
{
name = "Launch with Bun",
type = "pwa-node",
request = "launch",
runtimeExecutable = "bun",
runtimeArgs = { "--inspect-brk" },
program = "${file}",
cwd = "${workspaceFolder}",
sourceMaps = true,
resolveSourceMapLocations = { "${workspaceFolder}/**", "!**/node_modules/**" },
console = "internalConsole",
skipFiles = { "<node_internals>/**", "node_modules/**" },
attachSimplePort = 6499,
},
{
name = "Launch NestJS (dist/main.js)",
type = "pwa-node",
@@ -245,7 +261,7 @@ return {
skipFiles = { "<node_internals>/**", "node_modules/**" },
},
{
name = "Launch Current File",
name = "Launch Current File (Node)",
type = "pwa-node",
request = "launch",
program = "${file}",
@@ -289,6 +305,74 @@ return {
},
}
-- 🎮 DAP Keymaps (registered here so dap/dapui are already loaded)
keymap("n", "<leader>dcr", dap.continue, { desc = "▶ Start Debugging" })
keymap("n", "<leader>do", dap.step_over, { desc = "⏭ Step Over" })
keymap("n", "<leader>di", dap.step_into, { desc = "⤵ Step Into" })
keymap("n", "<leader>dot", dap.step_out, { desc = "⤴ Step Out" })
keymap("n", "<leader>db", dap.toggle_breakpoint, { desc = "🔴 Toggle Breakpoint" })
keymap("n", "<leader>dB", function()
dap.set_breakpoint(fn.input("Breakpoint condition: "))
end, { desc = "⚠ Conditional Breakpoint" })
keymap("n", "<leader>dr", dap.repl.open, { desc = "💬 Open REPL" })
keymap("n", "<leader>dl", dap.run_last, { desc = "🔁 Run Last Debug" })
keymap("n", "<leader>du", dapui.toggle, { desc = "🧩 Toggle DAP UI" })
keymap("n", "<leader>dq", dap.terminate, { desc = "⛔ Stop Debugging" })
keymap("n", "<leader>drt", function()
dap.terminate()
dapui.close()
vim.defer_fn(function()
dapui.open()
end, 200)
end, { desc = "🧼 Reset DAP UI Layout" })
keymap("n", "<leader>dcf", function()
local ft = vim.bo.filetype
local configs = dap.configurations[ft] or {}
if #configs == 0 then
vim.notify("No DAP configurations for filetype: " .. ft, vim.log.levels.WARN)
return
end
vim.ui.select(configs, {
prompt = "Select DAP configuration:",
format_item = function(item) return item.name end,
}, function(config)
if config then dap.run(config) end
end)
end, { desc = "🔭 DAP Configs" })
keymap("n", "<leader>dcb", function()
dap.list_breakpoints()
vim.cmd("copen")
end, { desc = "🧷 List Breakpoints" })
keymap("n", "<leader>dco", dap.repl.open, { desc = "⚙️ DAP Commands" })
-- 🔌 Dynamic Debug Attach (no hardcoded ports)
-- Bun requires --inspect=host:port/debug to set a known WebSocket path
-- because it doesn't implement /json/list for auto-discovery.
keymap("n", "<leader>jd", function()
vim.ui.input({ prompt = "Inspector port (default 6499): " }, function(input)
if input == nil then return end -- cancelled
local port = input ~= "" and input or "6499"
local port_num = tonumber(port)
if not port_num then
vim.notify("Invalid port number", vim.log.levels.ERROR)
return
end
local ws_url = "ws://localhost:" .. port .. "/debug"
vim.notify("Attaching to " .. ws_url, vim.log.levels.INFO)
dap.run({
name = "Attach (" .. ws_url .. ")",
type = "pwa-node",
request = "attach",
websocketAddress = ws_url,
cwd = fn.getcwd(),
sourceMaps = true,
resolveSourceMapLocations = { "${workspaceFolder}/**", "!**/node_modules/**" },
skipFiles = { "<node_internals>/**", "node_modules/**" },
restart = true,
})
end)
end, { desc = "🔌 Debug Attach (dynamic)" })
-- JavaScript uses same configurations as TypeScript
dap.configurations.javascript = {
{
@@ -309,5 +393,9 @@ return {
skipFiles = { "<node_internals>/**", "node_modules/**" },
},
}
-- TSX/JSX use the same configurations as their base languages
dap.configurations.typescriptreact = dap.configurations.typescript
dap.configurations.javascriptreact = dap.configurations.javascript
end,
}

View File

@@ -1,48 +0,0 @@
-- ============================================================================
-- EDGY: Window layout management
-- ============================================================================
-- Manages fixed window layouts for sidebars and panels (file tree, outline, etc.).
-- Keeps special windows docked at consistent positions and sizes.
-- Configures NvimTree (left), Outline (right), and various bottom panels.
-- ============================================================================
return {
"folke/edgy.nvim",
event = "VeryLazy",
opts = {
left = {
{
ft = "NvimTree",
size = { width = 35 },
},
},
right = {
{
ft = "Outline",
size = { width = 30 },
},
},
bottom = {
{
ft = "snacks_terminal",
size = { height = 0.25 },
},
{
ft = "trouble",
size = { height = 0.25 },
},
{
ft = "qf",
size = { height = 0.2 },
},
},
animate = { enabled = false },
exit_when_last = true,
wo = {
winbar = false,
winfixwidth = true,
winfixheight = false,
signcolumn = "no",
},
},
}

View File

@@ -1,61 +0,0 @@
-- ============================================================================
-- FLASH: Fast navigation with search labels
-- ============================================================================
-- Enhanced motion plugin - type a few chars, then jump directly to any match
-- using labeled hints. Works across windows. Press 's' to start flash jump,
-- or use with 'f', 't' motions. Much faster than repeated w/b movements.
-- ============================================================================
return {
"folke/flash.nvim",
event = "VeryLazy",
opts = {
labels = "asdfghjklqwertyuiopzxcvbnm",
search = {
multi_window = true,
forward = true,
wrap = true,
},
jump = {
jumplist = true,
pos = "start",
history = false,
register = false,
nohlsearch = false,
autojump = false,
},
label = {
uppercase = false,
rainbow = {
enabled = true,
shade = 5,
},
},
modes = {
search = {
enabled = false, -- set to true to enable flash in search mode
},
char = {
enabled = true,
jump_labels = true,
multi_line = false,
},
treesitter = {
labels = "asdfghjklqwertyuiopzxcvbnm",
jump = { pos = "range" },
search = { incremental = false },
label = { before = true, after = true, style = "inline" },
highlight = {
backdrop = false,
matches = false,
},
},
},
},
keys = {
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
},
}

View File

@@ -45,7 +45,8 @@ return {
lua = { "stylua" },
python = { "isort", "black" },
sql = { "sqlfluff" }, -- SQL formatting
java = { "google-java-format" },
-- java: no conform formatter (google-java-format needs JDK 21+)
-- falls through to JDTLS LSP via lsp_fallback = true
},
format_on_save = function(bufnr)
-- Disable autoformat for certain filetypes

View File

@@ -88,7 +88,7 @@ return {
end,
})
keymap.set("n", "<leader>l", function()
keymap.set("n", "<leader>lf", function()
lint.try_lint()
end, { desc = "Trigger linting for current file" })
end,

View File

@@ -75,6 +75,7 @@ return {
}),
-- sources for autocompletion
sources = cmp.config.sources({
{ name = "copilot", priority = 1100, group_index = 1 }, -- Copilot suggestions in menu
{ name = "nvim_lsp", priority = 1000 },
{ name = "luasnip", priority = 750 }, -- snippets
{ name = "buffer", priority = 500, keyword_length = 3 }, -- text within current buffer
@@ -86,6 +87,7 @@ return {
format = lspkind.cmp_format({
maxwidth = 50,
ellipsis_char = "...",
symbol_map = { Copilot = "" },
}),
},

View File

@@ -0,0 +1,53 @@
-- ============================================================================
-- OBSIDIAN: Full Obsidian vault integration for Neovim
-- ============================================================================
-- Wiki-link completion, daily notes, templates, backlinks, Telescope search,
-- and more. Replaces the custom follow_obsidian_link() function.
-- ============================================================================
return {
"epwalsh/obsidian.nvim",
version = "*",
dependencies = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
"nvim-telescope/telescope.nvim",
},
event = {
"BufReadPre " .. vim.fn.expand("~") .. "/Nextcloud/ObsidianVault/**.md",
"BufNewFile " .. vim.fn.expand("~") .. "/Nextcloud/ObsidianVault/**.md",
},
ft = "markdown",
keys = {
{ "<leader>on", "<cmd>ObsidianNew<cr>", desc = "New note" },
{ "<leader>od", "<cmd>ObsidianToday<cr>", desc = "Today's daily note" },
{ "<leader>os", "<cmd>ObsidianSearch<cr>", desc = "Search notes" },
{ "<leader>ob", "<cmd>ObsidianBacklinks<cr>", desc = "Show backlinks" },
{ "<leader>ot", "<cmd>ObsidianTemplate<cr>", desc = "Insert template" },
{ "<leader>of", "<cmd>ObsidianFollowLink<cr>", desc = "Follow link" },
{ "<leader>ol", "<cmd>ObsidianLink<cr>", mode = "v", desc = "Link selection to note" },
},
opts = {
workspaces = {
{
name = "vault",
path = "/Users/carlos/Nextcloud/ObsidianVault",
},
},
daily_notes = {
folder = "daily",
date_format = "%Y-%m-%d",
},
templates = {
folder = "templates",
},
completion = {
nvim_cmp = true,
min_chars = 2,
},
preferred_link_style = "wiki",
use_advanced_uri = false,
picker = {
name = "telescope.nvim",
},
},
}