various plugin changes to make notes work

This commit is contained in:
Jack Koskie 2024-07-27 14:53:18 -04:00
parent d5aaa05aca
commit 06c5d2415e
11 changed files with 131 additions and 56 deletions

13
lua/custom/keymaps.lua Normal file
View file

@ -0,0 +1,13 @@
vim.keymap.set('n', '<leader>oo', ':ObsidianOpen<cr>')
vim.keymap.set('n', '<leader>on', ':ObsidianNew<cr>')
vim.keymap.set('n', '<leader>os', ':ObsidianQuickSwitch<cr>')
vim.keymap.set('n', '<leader>oi', ':e oil://~/Documents/Obsidian/Artemis/Inbox/<cr>')
vim.keymap.set('n', '<leader>od', ':e oil://~/Documents/Obsidian/Artemis/<cr>')
vim.keymap.set('n', '<leader>om', ':Move Notes<cr>:e oil://~/Documents/Obsidian/Artemis/Inbox/<cr>')
vim.keymap.set('n', '<leader>ot', function()
vim.cmd ':ObsidianToday'
vim.api.nvim_feedkeys('G', 'n', false)
end)
vim.keymap.set('n', '<leader>ol', ':ObsidianFollowLink')
vim.keymap.set('n', '<leader>dd', ':Dashboard<cr>:echo<cr>')

View file

@ -1,9 +1,9 @@
return {
'rmagatti/auto-session',
config = function()
require('auto-session').setup {
log_level = 'error',
auto_session_suppress_dirs = { '~/', '~/Projects', '~/Downloads', '/' },
}
end,
-- 'rmagatti/auto-session',
-- config = function()
-- require('auto-session').setup {
-- log_level = 'error',
-- auto_session_suppress_dirs = { '~/', '~/Projects', '~/Downloads', '/' },
-- }
-- end,
}

View file

@ -0,0 +1,39 @@
return {
'nvimdev/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup {
theme = 'hyper',
config = {
week_header = {
enable = true,
},
shortcut = {
{ desc = '󰊳 Update', group = '@property', action = 'Lazy update', key = 'u' },
{
icon = '',
icon_hl = '@variable',
desc = 'Files',
group = 'Label',
action = 'Telescope find_files',
key = 'f',
},
{
desc = '󱇗 Daily Note',
group = 'DiagnosticHint',
action = 'ObsidianToday',
key = 'o',
},
{
desc = ' New File',
group = 'Number',
action = 'enew',
key = 'n',
},
},
},
shortcut_type = 'number',
}
end,
dependencies = { { 'nvim-tree/nvim-web-devicons' } },
}

View file

@ -0,0 +1,9 @@
return {
lazy = false,
'Myzel394/easytables.nvim',
config = function()
require('easytables').setup {
-- Your configuration comes here
}
end,
}

View file

@ -0,0 +1,3 @@
return {
'tpope/vim-eunuch',
}

View file

@ -0,0 +1,5 @@
return {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'neovim/nvim-lspconfig',
}

View file

@ -1,11 +0,0 @@
return {
'jakewvincent/mkdnflow.nvim',
config = function()
require('mkdnflow').setup {
-- Config goes here; leave blank for defaults
links = {
style = 'wiki',
},
}
end,
}

View file

@ -1,7 +1,7 @@
return {
'epwalsh/obsidian.nvim',
version = '*', -- recommended, use latest release instead of latest commit
lazy = true,
lazy = false,
ft = 'markdown',
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
-- event = {
@ -53,21 +53,24 @@ return {
},
},
new_notes_location = '/',
notes_subdir = 'Inbox',
new_notes_location = 'notes_subdir',
preffered_link_style = 'wiki',
note_id_func = function(title)
return title
end,
picker = {
-- Set your preferred picker. Can be one of 'telescope.nvim', 'fzf-lua', or 'mini.pick'.
name = 'telescope.nvim',
-- Optional, configure key mappings for the picker. These are the defaults.
-- Not all pickers support all mappings.
mappings = {
-- Create a new note from your query.
new = '<C-x>',
-- Insert a link to the selected note.
insert_link = '<C-l>',
},
templates = {
folder = 'Templates',
date_format = '%Y-%m-%d-%a',
time_format = '%H:%M',
},
daily_notes = {
folder = 'Daily Notes',
date_format = '%Y-%m-%d',
default_tags = { 'dailynote' },
},
ui = {

View file

@ -0,0 +1,3 @@
return {
'nanotee/zoxide.vim',
}