Compare commits

...

4 Commits

Author SHA1 Message Date
726a2caec7 Updated obsidian plugin config 2025-12-09 13:16:07 +00:00
cd84a2550e Removed neodev dependency 2025-12-09 12:47:29 +00:00
f19e791e9c Tweaked which-key UI settings 2025-12-09 12:11:25 +00:00
2b91aa053b Added missing which-key icons 2025-12-09 11:31:27 +00:00
5 changed files with 40 additions and 13 deletions

View File

@@ -12,6 +12,11 @@ return {
{ "<leader>h", group = "[H]arpoon", icon="󱡀" },
{ "<leader>x", group = "[X] Trouble", icon="󰋔" },
},
commands = {
{ "<leader>f", group = "[F]ormat", icon="󰗈" },
{ "<leader>p", group = "[P]recognition", icon="󰬯" },
{ "<leader>?", group = "[?] Cheatsheet", icon="󰧹" },
},
gitsigns = {
{
"<leader>gs",
@@ -231,7 +236,6 @@ return {
end
end,
desc = "[P]recognition",
icon = "󰬯",
mode = "n",
},
},

View File

@@ -16,7 +16,7 @@ vim.keymap.set("n", "<A-;>", "<C-w>x", { noremap = true, silent = true })
vim.keymap.set("n", "<A-q>", ":q<CR>", { noremap = true, silent = true })
-- Non standard key mappings are here
vim.keymap.set("n", "<leader>d", vim.diagnostic.open_float, { desc = "[D]iagnostics" })
vim.keymap.set("n", "<leader>f", vim.lsp.buf.format, { desc = "[F]ormat", icon="󰗈" })
vim.keymap.set("n", "<leader>f", vim.lsp.buf.format, { desc = "[F]ormat" })
vim.keymap.set(
"n",
"<leader>ci",

View File

@@ -12,17 +12,38 @@ return { -- Non programming quality of life utilities go here
"nvim-telescope/telescope.nvim",
"nvim-treesitter/nvim-treesitter",
},
opts = {
workspaces = {
{
opts = function()
local target_path = vim.fn.expand("~/Documents/Work_Notes/")
local workspaces = {}
if vim.fn.isdirectory(target_path) == 1 then
table.insert(workspaces, {
name = "work",
path = "~/Documents/Work_Notes/",
path = target_path,
})
end
if #workspaces == 0 then
local fallback_path = vim.fn.stdpath("data") .. "/obsidian_fallback"
if vim.fn.isdirectory(fallback_path) == 0 then
vim.fn.mkdir(fallback_path, "p")
end
table.insert(workspaces, {
name = "fallback",
path = fallback_path,
})
vim.notify("Obsidian: 'Work_Notes' not found. Using fallback path.", vim.log.levels.WARN)
end
return {
workspaces = workspaces,
completion = {
min_chars = 2,
},
},
completion = {
min_chars = 2,
},
},
}
end,
},
{
"MeanderingProgrammer/render-markdown.nvim",

View File

@@ -6,7 +6,6 @@ return {
"williamboman/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
{ "j-hui/fidget.nvim", opts = {} },
{ "folke/neodev.nvim", opts = {} },
},
config = function()
vim.api.nvim_create_autocmd("LspAttach", {

View File

@@ -10,11 +10,14 @@ return { -- UI components and other visual elements are declared here
{ "MunifTanjim/nui.nvim", lazy = true },
{ -- Useful plugin to show you pending keybinds.
"folke/which-key.nvim",
event = "VimEnter",
event = "VeryLazy",
config = function()
local wk = require("which-key")
wk.setup({preset = "modern"})
local groups = require("config.keys").groups
local commands = require("config.keys").commands
wk.add(groups)
wk.add(commands)
end,
},
{