-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
332 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
local wezterm = require('wezterm') | ||
|
||
local sym_fallback = { family = 'Symbols Nerd Font', scale = 1 } | ||
return { | ||
hasklug = wezterm.font_with_fallback({ | ||
{ family = 'Hasklug Nerd Font', weight = 'Regular' }, | ||
{ family = 'Symbols Nerd Font Mono', scale = 1 }, | ||
sym_fallback, | ||
}), | ||
monofur = wezterm.font_with_fallback({ | ||
{ family = 'Monofur Nerd Font', weight = 'Regular' }, | ||
{ family = 'Symbols Nerd Font Mono', scale = 1 }, | ||
sym_fallback, | ||
}), | ||
monoid = wezterm.font_with_fallback({ | ||
{ family = 'Monoid Nerd Font', weight = 'Regular' }, | ||
{ family = 'Symbols Nerd Font Mono', scale = 1 }, | ||
sym_fallback, | ||
}), | ||
f3270 = wezterm.font_with_fallback({ | ||
{ family = '3270 Nerd Font', weight = 'Regular' }, | ||
{ family = 'Symbols Nerd Font Mono', scale = 1 }, | ||
sym_fallback, | ||
}), | ||
agave = wezterm.font_with_fallback({ | ||
{ family = 'Agave Nerd Font', weight = 'Regular' }, | ||
{ family = 'Symbols Nerd Font Mono', scale = 1 }, | ||
}), | ||
spacemono = wezterm.font_with_fallback({ | ||
{ family = 'SpaceMono Nerd Font', weight = 'Regular' }, | ||
{ family = 'Symbols Nerd Font Mono', scale = 1 }, | ||
sym_fallback, | ||
}), | ||
spacemono = wezterm.font 'SpaceMono Nerd Font', | ||
-- spacemono = wezterm.font_with_fallback({ | ||
-- { family = 'SpaceMono Nerd Font', weight = 'Regular' }, | ||
-- sym_fallback, | ||
-- }), | ||
firacode = wezterm.font 'Fira Code', | ||
jetbrains = wezterm.font 'JetBrains Mono', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
local map = vim.keymap.set | ||
vim.opt_local.conceallevel = 0 | ||
local wikilink_regex = '\\[\\[.*\\]\\]' | ||
local mdlink_regex = '\\[[^]]*\\](.*)' | ||
local link_regex = [[\(]].. wikilink_regex ..[[\|]].. mdlink_regex ..[[\)]] | ||
map('n', '<leader>it', '<CMD>r!today<CR>i##<Space><Esc>_', | ||
{ buffer = true, desc = '[i]nsert [t]oday\'s date as heading' }) | ||
map('v', '<leader>t', '!pandoc -t gfm<CR>', { buffer = true, desc = 'format highlighted [T]able' }) | ||
map('v', '<leader>T', '!pandoc -t markdown_strict+grid_tables<CR>', | ||
{ buffer = true, desc = 'format highlighted [T]able' }) | ||
map('n', '<leader>gt', 'vip!pandoc -t ', { buffer = true }) | ||
vim.keymap.set('n', '<leader>nt', function() | ||
local lc = vim.api.nvim_get_option_value('conceallevel', {}) | ||
if lc == 0 then | ||
vim.opt_local.conceallevel = 2 | ||
else | ||
vim.opt_local.conceallevel = 0 | ||
end | ||
end, { desc = '[n]otes [t]oggle conceal' , buffer = true}) | ||
-- vim.opt_local.conceallevel = 1 | ||
-- vim.keymap.set('n', '<leader>nt', function() | ||
-- local lc = vim.api.nvim_get_option_value('conceallevel', {}) | ||
-- if lc == 0 then | ||
-- vim.opt_local.conceallevel = 1 | ||
-- else | ||
-- vim.opt_local.conceallevel = 0 | ||
-- end | ||
-- end, { desc = '[n]otes [t]oggle conceal' , buffer = true}) | ||
map('n', '<Tab>', '/'.. wikilink_regex ..'<CR>zz', { desc = 'go to next link', buffer = true }) | ||
map('n', '<S-Tab>', '?'.. wikilink_regex ..'<CR>zz', { desc = 'go to prev link', buffer = true }) | ||
map('n', '<C-Tab>', '/'.. link_regex ..'<CR>zz', { desc = 'go to next link', buffer = true }) | ||
map('n', '<C-S-Tab>', '?'.. link_regex ..'<CR>zz', { desc = 'go to prev link', buffer = true }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
local wikilink_regex = '\\[\\[.*\\]\\]' | ||
local mdlink_regex = '\\[[^]]*\\](.*)' | ||
local link_regex = [[\(]].. wikilink_regex ..[[\|]].. mdlink_regex ..[[\)]] | ||
|
||
vim.keymap.set('n', '<Tab>', '/'.. wikilink_regex ..'<CR>zz', { desc = 'go to next link', buffer = true }) | ||
vim.keymap.set('n', '<S-Tab>', '?'.. wikilink_regex ..'<CR>zz', { desc = 'go to prev link', buffer = true }) | ||
vim.keymap.set('n', '<C-Tab>', '/'.. link_regex ..'<CR>zz', { desc = 'go to next link', buffer = true }) | ||
vim.keymap.set('n', '<C-S-Tab>', '?'.. link_regex ..'<CR>zz', { desc = 'go to prev link', buffer = true }) | ||
vim.keymap.set('n', '<leader>nt', function() | ||
local lc = vim.api.nvim_get_option_value('conceallevel', {}) | ||
if lc == 0 then | ||
vim.opt_local.conceallevel = 2 | ||
else | ||
vim.opt_local.conceallevel = 0 | ||
end | ||
end, { desc = '[n]otes [t]oggle conceal' , buffer = true}) | ||
-- vim.keymap.set('n', '<leader>nt', function() | ||
-- local lc = vim.api.nvim_get_option_value('conceallevel', {}) | ||
-- if lc == 0 then | ||
-- vim.opt_local.conceallevel = 2 | ||
-- else | ||
-- vim.opt_local.conceallevel = 0 | ||
-- end | ||
-- end, { desc = '[n]otes [t]oggle conceal' , buffer = true}) | ||
vim.cmd [[hi link tkTag Constant]] -- custom highlights | ||
-- vim.cmd [[hi link tkHighlight @comment.note]] | ||
vim.cmd [[hi link tkHighlight Visual]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- THIS IS CALLED ON VIM INIT, NOT LAZY CONFIG! | ||
local map = vim.keymap.set | ||
local maps = { | ||
["<leader>nx"] = { | ||
modes = 'v', | ||
action = ":ObsidianExtractNote<CR>", | ||
opts = { buffer = true }, | ||
}, | ||
["<leader>nln"] = { | ||
modes = 'v', | ||
action = ":ObsidianLinkNew<CR>", | ||
opts = {}, | ||
}, | ||
["<leader>nll"] = { | ||
modes = 'v', | ||
action = ":ObsidianLink<CR>", | ||
opts = { buffer = true }, | ||
}, | ||
["<leader>na"] = { | ||
modes = 'n', | ||
action = ":ObsidianToday<CR>", | ||
opts = {}, | ||
}, | ||
["<leader>nf"] = { | ||
modes = 'n', | ||
action = ":ObsidianQuickSwitch<CR>", | ||
opts = {}, | ||
}, | ||
} | ||
for combos, dat in pairs(maps) do | ||
map(dat.modes, combos, dat.action, dat.opts ) | ||
end |
Oops, something went wrong.