Compare commits

...

2 commits

Author SHA1 Message Date
Sanchayan Maity 1ec6aee797
nvim: after/ftplugin/markdown: Set conceallevel to 2
neovim 0.10 introduces experimental support for hyperlinks using
OSC 8 sequence. By default, this is used in Markdown for links of
the form [example](https://example.com). If terminal supports the
OSC 8 escape sequence, then the text example in the neovim buffer
will contain a hyperlink that can be clicked and it will open in
web browser.

This means markdown files with conceallevel=2 look much closer to
the rendered output.
2024-05-17 11:35:28 +05:30
Sanchayan Maity 1b96983efa
fish: functions: Add an alias for opening log files in /tmp 2024-05-15 20:32:21 +05:30
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,13 @@
function lo --description 'Open a .log file in /tmp or given path'
if count $argv >/dev/null
set logpath "$argv"
else
set logpath /tmp
end
find $logpath -maxdepth 1 -regextype posix-extended -regex ".*\.(log)" -printf '%T@ %p\n' | sort -k 1 -n -r | fzf --bind "ctrl-d:half-page-down,ctrl-u:half-page-up" | awk -F' ' '{print $2}' | read -l result
if test -n "$result"
nvim "$result"
end
end

View file

@ -1,4 +1,5 @@
vim.bo.textwidth = 0
vim.bo.textwidth = 0
vim.wo.conceallevel = 2
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
buffer = 0,