···4343 })
4444 end,
4545 },
4646- {
4747- "iamcco/markdown-preview.nvim", -- preview with a Browser
4848- event = "VeryLazy",
4949- build = function()
5050- vim.fn["mkdp#util#install"]()
5151- end,
5252- config = function()
5353- --VimWiki
5454- vim.cmd([[
5555- set nocompatible
5656- let g:vimwiki_list = [{'path': '~/Simon/SecondBrain', 'syntax': 'markdown', 'ext': '.md'}]
5757- let g:vimwiki_global_ext = 0 " o
5858- ]])
4646+ -- {
4747+ --"iamcco/markdown-preview.nvim", -- preview with a Browser
4848+ --event = "VeryLazy",
4949+ --build = function()
5050+ -- vim.fn["mkdp#util#install"]()
5151+ --end,
5252+ --config = function()
5353+ -- --VimWiki
5454+ -- vim.cmd([[
5555+ -- set nocompatible
5656+ -- let g:vimwiki_list = [{'path': '~/Simon/SecondBrain', 'syntax': 'markdown', 'ext': '.md'}]
5757+ -- let g:vimwiki_global_ext = 0 " o
5858+ -- ]])
59596060- -- Outline Shortcut
6161- vim.cmd("autocmd FileType markdown,vimwiki nmap <leader>o :SymbolsOutline<CR>")
6060+ -- -- Outline Shortcut
6161+ -- vim.cmd("autocmd FileType markdown,vimwiki nmap <leader>o :SymbolsOutline<CR>")
62626363- -- create WikiLink and paste clipboard as link when in visual mode
6464- vim.cmd('autocmd FileType markdown vnoremap <leader>K <Esc>`<i[<Esc>`>la](<Esc>"*]pa)<Esc>')
6363+ -- -- create WikiLink and paste clipboard as link when in visual mode
6464+ -- vim.cmd('autocmd FileType markdown vnoremap <leader>K <Esc>`<i[<Esc>`>la](<Esc>"*]pa)<Esc>')
65656666- -- create empty wikilink when in normal mode
6767- vim.cmd("autocmd FileType markdown nmap <leader>K i[]()<Esc>hhi")
6666+ -- -- create empty wikilink when in normal mode
6767+ -- vim.cmd("autocmd FileType markdown nmap <leader>K i[]()<Esc>hhi")
68686969- -- Open file in Obsidian vault
7070- vim.cmd(
7171- "command! IO execute \"silent !open 'obsidian://open?vault=SecondBrain&file=\" . expand('%:r') . \"'\""
7272- )
7373- vim.keymap.set("n", "<leader>io", ":IO<CR>", { noremap = true, silent = true })
6969+ -- -- Open file in Obsidian vault
7070+ -- vim.cmd(
7171+ -- "command! IO execute \"silent !open 'obsidian://open?vault=SecondBrain&file=\" . expand('%:r') . \"'\""
7272+ -- )
7373+ -- vim.keymap.set("n", "<leader>io", ":IO<CR>", { noremap = true, silent = true })
74747575- -- Turn off autocomplete for Markdown
7676- vim.cmd("au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown")
7575+ -- -- Turn off autocomplete for Markdown
7676+ -- vim.cmd("au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown")
77777878- -- Highlights for headers in markdown -> doesn't really work
7979- vim.cmd([[
8080- highlight htmlH1 guifg=#50fa7b gui=bold
8181- highlight htmlH2 guifg=#ff79c6 gui=bold
8282- highlight htmlH3 guifg=#ffb86c gui=bold
8383- highlight htmlH4 guifg=#8be9fd gui=bold
8484- highlight htmlH5 guifg=#f1fa8c gui=bold
8585- ]])
8686- end,
8787- },
7878+ -- -- Highlights for headers in markdown -> doesn't really work
7979+ -- vim.cmd([[
8080+ -- highlight htmlH1 guifg=#50fa7b gui=bold
8181+ -- highlight htmlH2 guifg=#ff79c6 gui=bold
8282+ -- highlight htmlH3 guifg=#ffb86c gui=bold
8383+ -- highlight htmlH4 guifg=#8be9fd gui=bold
8484+ -- highlight htmlH5 guifg=#f1fa8c gui=bold
8585+ -- ]])
8686+ --end,
8787+ -- },
8888 --{
8989 -- --connect with vimwiki with Obsidian Second Brain (see obsidian.lua for native plugin)
9090 -- --vim.opt.nocompatible = true --Recommende for VimWiki
+19
nvim-wp/lua/sspaeti/set_wp.lua
···2929--enter text vertically to maximize focus on current line
3030vim.opt.scrolloff = 5 --default: 8
31313232+3333+-- This removes the currly underline below a Markdown link, but keeps the color and icon effect
3434+vim.defer_fn(function()
3535+ -- Get current highlight attributes
3636+ local current_hl = vim.api.nvim_get_hl(0, { name = "@string.special.url" })
3737+3838+ -- Create new highlight with same colors but no underline
3939+ local new_hl = {
4040+ fg = current_hl.fg,
4141+ bg = current_hl.bg,
4242+ sp = current_hl.sp,
4343+ bold = current_hl.bold,
4444+ italic = current_hl.italic,
4545+ underline = false -- Explicitly remove underline
4646+ }
4747+4848+ -- Apply the modified highlight
4949+ vim.api.nvim_set_hl(0, "@string.special.url", new_hl)
5050+end, 100)
+21
nvim/lua/sspaeti/remap.lua
···146146 end
147147end
148148149149+-- This removes the currly underline below a Markdown link, but keeps the color and icon effect
150150+vim.defer_fn(function()
151151+ -- Get current highlight attributes
152152+ local current_hl = vim.api.nvim_get_hl(0, { name = "@string.special.url" })
153153+154154+ -- Create new highlight with same colors but no underline
155155+ local new_hl = {
156156+ fg = current_hl.fg,
157157+ bg = current_hl.bg,
158158+ sp = current_hl.sp,
159159+ bold = current_hl.bold,
160160+ italic = current_hl.italic,
161161+ underline = false -- Explicitly remove underline
162162+ }
163163+164164+ -- Apply the modified highlight
165165+ vim.api.nvim_set_hl(0, "@string.special.url", new_hl)
166166+end, 100)
167167+168168+149169-- Shortcut to toggle conceallevel
150170vim.api.nvim_set_keymap('n', '<leader>mt', ':lua ToggleConceallevel()<CR>', { noremap = true, silent = true })
151171152172153173-- Zenmode
154174vim.keymap.set("n", "<leader>z", ":ZenMode<CR>")
175175+155176156177-- Bold
157178vim.api.nvim_set_keymap('n', '<leader>b', 'ciw**<C-r>"**<Esc>', {desc = "Bold Word", noremap = true})