clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove currly underlines in markdown

+76 -36
+36 -36
nvim-wp/lua/sspaeti/plugins/markdown.lua
··· 43 43 }) 44 44 end, 45 45 }, 46 - { 47 - "iamcco/markdown-preview.nvim", -- preview with a Browser 48 - event = "VeryLazy", 49 - build = function() 50 - vim.fn["mkdp#util#install"]() 51 - end, 52 - config = function() 53 - --VimWiki 54 - vim.cmd([[ 55 - set nocompatible 56 - let g:vimwiki_list = [{'path': '~/Simon/SecondBrain', 'syntax': 'markdown', 'ext': '.md'}] 57 - let g:vimwiki_global_ext = 0 " o 58 - ]]) 46 + -- { 47 + --"iamcco/markdown-preview.nvim", -- preview with a Browser 48 + --event = "VeryLazy", 49 + --build = function() 50 + -- vim.fn["mkdp#util#install"]() 51 + --end, 52 + --config = function() 53 + -- --VimWiki 54 + -- vim.cmd([[ 55 + -- set nocompatible 56 + -- let g:vimwiki_list = [{'path': '~/Simon/SecondBrain', 'syntax': 'markdown', 'ext': '.md'}] 57 + -- let g:vimwiki_global_ext = 0 " o 58 + -- ]]) 59 59 60 - -- Outline Shortcut 61 - vim.cmd("autocmd FileType markdown,vimwiki nmap <leader>o :SymbolsOutline<CR>") 60 + -- -- Outline Shortcut 61 + -- vim.cmd("autocmd FileType markdown,vimwiki nmap <leader>o :SymbolsOutline<CR>") 62 62 63 - -- create WikiLink and paste clipboard as link when in visual mode 64 - vim.cmd('autocmd FileType markdown vnoremap <leader>K <Esc>`<i[<Esc>`>la](<Esc>"*]pa)<Esc>') 63 + -- -- create WikiLink and paste clipboard as link when in visual mode 64 + -- vim.cmd('autocmd FileType markdown vnoremap <leader>K <Esc>`<i[<Esc>`>la](<Esc>"*]pa)<Esc>') 65 65 66 - -- create empty wikilink when in normal mode 67 - vim.cmd("autocmd FileType markdown nmap <leader>K i[]()<Esc>hhi") 66 + -- -- create empty wikilink when in normal mode 67 + -- vim.cmd("autocmd FileType markdown nmap <leader>K i[]()<Esc>hhi") 68 68 69 - -- Open file in Obsidian vault 70 - vim.cmd( 71 - "command! IO execute \"silent !open 'obsidian://open?vault=SecondBrain&file=\" . expand('%:r') . \"'\"" 72 - ) 73 - vim.keymap.set("n", "<leader>io", ":IO<CR>", { noremap = true, silent = true }) 69 + -- -- Open file in Obsidian vault 70 + -- vim.cmd( 71 + -- "command! IO execute \"silent !open 'obsidian://open?vault=SecondBrain&file=\" . expand('%:r') . \"'\"" 72 + -- ) 73 + -- vim.keymap.set("n", "<leader>io", ":IO<CR>", { noremap = true, silent = true }) 74 74 75 - -- Turn off autocomplete for Markdown 76 - vim.cmd("au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown") 75 + -- -- Turn off autocomplete for Markdown 76 + -- vim.cmd("au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown") 77 77 78 - -- Highlights for headers in markdown -> doesn't really work 79 - vim.cmd([[ 80 - highlight htmlH1 guifg=#50fa7b gui=bold 81 - highlight htmlH2 guifg=#ff79c6 gui=bold 82 - highlight htmlH3 guifg=#ffb86c gui=bold 83 - highlight htmlH4 guifg=#8be9fd gui=bold 84 - highlight htmlH5 guifg=#f1fa8c gui=bold 85 - ]]) 86 - end, 87 - }, 78 + -- -- Highlights for headers in markdown -> doesn't really work 79 + -- vim.cmd([[ 80 + -- highlight htmlH1 guifg=#50fa7b gui=bold 81 + -- highlight htmlH2 guifg=#ff79c6 gui=bold 82 + -- highlight htmlH3 guifg=#ffb86c gui=bold 83 + -- highlight htmlH4 guifg=#8be9fd gui=bold 84 + -- highlight htmlH5 guifg=#f1fa8c gui=bold 85 + -- ]]) 86 + --end, 87 + -- }, 88 88 --{ 89 89 -- --connect with vimwiki with Obsidian Second Brain (see obsidian.lua for native plugin) 90 90 -- --vim.opt.nocompatible = true --Recommende for VimWiki
+19
nvim-wp/lua/sspaeti/set_wp.lua
··· 29 29 --enter text vertically to maximize focus on current line 30 30 vim.opt.scrolloff = 5 --default: 8 31 31 32 + 33 + -- This removes the currly underline below a Markdown link, but keeps the color and icon effect 34 + vim.defer_fn(function() 35 + -- Get current highlight attributes 36 + local current_hl = vim.api.nvim_get_hl(0, { name = "@string.special.url" }) 37 + 38 + -- Create new highlight with same colors but no underline 39 + local new_hl = { 40 + fg = current_hl.fg, 41 + bg = current_hl.bg, 42 + sp = current_hl.sp, 43 + bold = current_hl.bold, 44 + italic = current_hl.italic, 45 + underline = false -- Explicitly remove underline 46 + } 47 + 48 + -- Apply the modified highlight 49 + vim.api.nvim_set_hl(0, "@string.special.url", new_hl) 50 + end, 100)
+21
nvim/lua/sspaeti/remap.lua
··· 146 146 end 147 147 end 148 148 149 + -- This removes the currly underline below a Markdown link, but keeps the color and icon effect 150 + vim.defer_fn(function() 151 + -- Get current highlight attributes 152 + local current_hl = vim.api.nvim_get_hl(0, { name = "@string.special.url" }) 153 + 154 + -- Create new highlight with same colors but no underline 155 + local new_hl = { 156 + fg = current_hl.fg, 157 + bg = current_hl.bg, 158 + sp = current_hl.sp, 159 + bold = current_hl.bold, 160 + italic = current_hl.italic, 161 + underline = false -- Explicitly remove underline 162 + } 163 + 164 + -- Apply the modified highlight 165 + vim.api.nvim_set_hl(0, "@string.special.url", new_hl) 166 + end, 100) 167 + 168 + 149 169 -- Shortcut to toggle conceallevel 150 170 vim.api.nvim_set_keymap('n', '<leader>mt', ':lua ToggleConceallevel()<CR>', { noremap = true, silent = true }) 151 171 152 172 153 173 -- Zenmode 154 174 vim.keymap.set("n", "<leader>z", ":ZenMode<CR>") 175 + 155 176 156 177 -- Bold 157 178 vim.api.nvim_set_keymap('n', '<leader>b', 'ciw**<C-r>"**<Esc>', {desc = "Bold Word", noremap = true})