Removes unused plugins, adds orgmode plugin back
This commit is contained in:
parent
f1889cbe30
commit
b07dd6553b
4 changed files with 34 additions and 71 deletions
|
|
@ -1,4 +0,0 @@
|
||||||
return {
|
|
||||||
"sindrets/diffview.nvim",
|
|
||||||
opts = {},
|
|
||||||
}
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
return {
|
|
||||||
"ThePrimeagen/harpoon",
|
|
||||||
branch = "harpoon2",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function()
|
|
||||||
local harpoon = require("harpoon")
|
|
||||||
|
|
||||||
harpoon:setup()
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>ha", function()
|
|
||||||
harpoon:list():add()
|
|
||||||
end)
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>hx", function()
|
|
||||||
harpoon:list():select(1)
|
|
||||||
end)
|
|
||||||
vim.keymap.set("n", "<leader>hc", function()
|
|
||||||
harpoon:list():select(2)
|
|
||||||
end)
|
|
||||||
vim.keymap.set("n", "<leader>hv", function()
|
|
||||||
harpoon:list():select(3)
|
|
||||||
end)
|
|
||||||
vim.keymap.set("n", "<leader>hs", function()
|
|
||||||
harpoon:list():select(4)
|
|
||||||
end)
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>hp", function()
|
|
||||||
harpoon:list():prev()
|
|
||||||
end)
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>hn", function()
|
|
||||||
harpoon:list():next()
|
|
||||||
end)
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>hh", function()
|
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
return {
|
|
||||||
"epwalsh/obsidian.nvim",
|
|
||||||
version = "*", -- recommended, use latest release instead of latest commit
|
|
||||||
lazy = true,
|
|
||||||
ft = "markdown",
|
|
||||||
event = {
|
|
||||||
"BufReadPre /home/dennis/notes/**.md",
|
|
||||||
"BufNewFile /home/dennis/notes/**.md",
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
workspaces = {
|
|
||||||
{
|
|
||||||
name = "notes",
|
|
||||||
path = "~/notes",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
daily_notes = {
|
|
||||||
-- Optional, if you keep daily notes in a separate directory.
|
|
||||||
folder = "~/notes/001_dailies",
|
|
||||||
-- Optional, if you want to change the date format for the ID of daily notes.
|
|
||||||
date_format = "%Y-%m-%d",
|
|
||||||
-- Optional, if you want to change the date format of the default alias of daily notes.
|
|
||||||
alias_format = "%B %-d, %Y",
|
|
||||||
-- Optional, if you want to automatically insert a template from your template directory like 'daily.md'
|
|
||||||
template = nil,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
34
home/modules/nvim/config/lua/plugins/orgmode.lua
Normal file
34
home/modules/nvim/config/lua/plugins/orgmode.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
return {
|
||||||
|
"nvim-orgmode/orgmode",
|
||||||
|
event = "VeryLazy",
|
||||||
|
ft = { "org" },
|
||||||
|
config = function()
|
||||||
|
require("orgmode").setup({
|
||||||
|
org_agenda_files = "~/orgnzr/**/*",
|
||||||
|
org_default_notes_file = "~/orgnzr/inbox.org",
|
||||||
|
org_todo_keywords = { "PROJECT(p)", "TODO(t)", "NEXT(n)", "|", "DONE(d)" },
|
||||||
|
win_split_mode = "120vsplit",
|
||||||
|
org_startup_indented = true,
|
||||||
|
org_indent_mode_turns_off_org_adapt_indentation = true,
|
||||||
|
org_hide_leading_stars = true,
|
||||||
|
org_blank_before_new_entry = { heading = false, plain_list_item = false },
|
||||||
|
org_startup_folded = "content",
|
||||||
|
org_ellipsis = " ",
|
||||||
|
org_capture_templates = {
|
||||||
|
t = { description = "Task", template = "* TODO %?\n" },
|
||||||
|
l = { description = "Link", template = "* TODO [[%x]]%?" },
|
||||||
|
a = { description = "Task at line", template = "* TODO %?\nat: %a" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = "org",
|
||||||
|
callback = function()
|
||||||
|
vim.keymap.set("i", "<S-CR>", '<cmd>lua require("orgmode").action("org_mappings.meta_return")<CR>', {
|
||||||
|
silent = true,
|
||||||
|
buffer = true,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue