mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-23 20:22:24 +00:00
Compare commits
No commits in common. "941fa359d9ccdaff5482e833878e7f5c1551c22b" and "cd204f5ac3fbd61decbefa95941e8a5c7f88b140" have entirely different histories.
941fa359d9
...
cd204f5ac3
@ -1,5 +1,8 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
# Required to place identity file on machine
|
||||
imports = [ ../shell/age.nix ];
|
||||
|
||||
options = {
|
||||
mailUser = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
|
@ -29,37 +29,7 @@ M.packer = function(use)
|
||||
})
|
||||
|
||||
-- Markdown renderer / wiki notes
|
||||
-- use("vimwiki/vimwiki")
|
||||
use({
|
||||
"jakewvincent/mkdnflow.nvim",
|
||||
config = function()
|
||||
require("mkdnflow").setup({
|
||||
modules = {
|
||||
bib = false,
|
||||
conceal = true,
|
||||
folds = false,
|
||||
},
|
||||
perspective = {
|
||||
priority = "current",
|
||||
fallback = "first",
|
||||
nvim_wd_heel = false, -- Don't change working dir
|
||||
},
|
||||
links = {
|
||||
style = "markdown",
|
||||
conceal = true,
|
||||
},
|
||||
wrap = true,
|
||||
to_do = {
|
||||
symbols = { " ", "-", "x" },
|
||||
},
|
||||
})
|
||||
-- Save when moving to new buffer
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "markdown",
|
||||
command = "set autowriteall",
|
||||
})
|
||||
end,
|
||||
})
|
||||
use("vimwiki/vimwiki")
|
||||
end
|
||||
|
||||
return M
|
||||
|
@ -83,3 +83,34 @@ vim.g.netrw_banner = 0 -- Remove useless banner
|
||||
vim.g.netrw_winsize = 15 -- Explore window takes % of page
|
||||
vim.g.netrw_browse_split = 4 -- Open in previous window
|
||||
vim.g.netrw_altv = 1 -- Always split left
|
||||
|
||||
-- VimWiki
|
||||
vim.g.vimwiki_list = {
|
||||
{
|
||||
["path"] = "$NOTES_PATH",
|
||||
["syntax"] = "markdown",
|
||||
["index"] = "home",
|
||||
["ext"] = ".md",
|
||||
},
|
||||
}
|
||||
vim.g.vimwiki_key_mappings = {
|
||||
["all_maps"] = 1,
|
||||
["mouse"] = 1,
|
||||
}
|
||||
vim.g.vimwiki_auto_chdir = 1 -- Set local dir to Wiki when open
|
||||
vim.g.vimwiki_create_link = 0 -- Don't automatically create new links
|
||||
vim.g.vimwiki_listsyms = " x" -- Set checkbox symbol progression
|
||||
vim.g.vimwiki_table_mappings = 0 -- VimWiki table keybinds interfere with tab completion
|
||||
vim.api.nvim_exec(
|
||||
[[
|
||||
au FileType markdown inoremap ;tt <Esc>:AddTag<CR>
|
||||
|
||||
function! PInsert(item)
|
||||
let @z=a:item
|
||||
norm "zpx
|
||||
endfunction
|
||||
|
||||
command! AddTag call fzf#run({'source': 'rg "#[A-Za-z/]+[ |\$]" -o --no-filename --no-line-number | sort | uniq', 'sink': function('PInsert')})
|
||||
]],
|
||||
false
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
home-manager.users.${config.user} = {
|
||||
|
||||
home.sessionVariables = {
|
||||
NOTES_PATH = "${config.homePath}/dev/personal/notes/content";
|
||||
NOTES_PATH = "${config.homePath}/dev/personal/notes";
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -1,20 +0,0 @@
|
||||
# Windows Programs
|
||||
|
||||
- Monitorian (monitor brightness)
|
||||
- Firefox
|
||||
- Alacritty
|
||||
- Mullvad
|
||||
- Keybase (dokan)
|
||||
- qBittorrent
|
||||
- 1Password
|
||||
- Authy Desktop
|
||||
- Autohotkey
|
||||
- 7zip
|
||||
- Audacity
|
||||
- Calibre
|
||||
- Discord
|
||||
- Git
|
||||
- Netflix
|
||||
- Obsidian
|
||||
- Realtek HD Audio
|
||||
- AMD Software
|
Loading…
x
Reference in New Issue
Block a user