for diagnostics:
vim.diagnostic.config {
virtual_text = false,
float = {
header = false,
border = 'rounded',
focusable = true,
},| "experimental.theme_overrides": { | |
| "syntax": { | |
| "boolean": { | |
| "color": "#857499" | |
| }, | |
| "number": { | |
| "color": "#857499" | |
| }, | |
| "constant": { | |
| "color": "#857499" |
| local chat_win = nil | |
| local chat_buf = nil | |
| local chat_file = nil | |
| local toggle_chat | |
| -- generate random file at ~/chats | |
| local function generate_filename() | |
| local random = math.random(1000000) | |
| return os.getenv("HOME") .. "/chats/chat_" .. random .. ".chat" |
| // run in console of a shopify store /products.json endpoint. | |
| let json = JSON.parse(document.querySelector("pre").innerHTML); | |
| const parseJSON = (obj) => { | |
| let csvArr = [['title','description','sku','image_originator_url']]; | |
| for (product of obj.products) { | |
| const randomSKU = Math.floor(Math.random() * 9999999999); | |
| const row = [ | |
| product.title, |
| # -*- conf -*- | |
| # shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) | |
| # term=foot (or xterm-256color if built with -Dterminfo=disabled) | |
| # login-shell=no | |
| # app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode | |
| # title=foot | |
| # locked-title=no | |
| function noted -a 'filename' | |
| cd ~/Documents/notes | |
| if test -n "$filename" | |
| if test -e "$argv.md" | |
| echo "opening daily note" | |
| nvim "$argv.md" | |
| else | |
| echo "creating new daily note, opening" | |
| touch "$argv.md" | |
| nvim "$argv.md" |
| vim.cmd [[ | |
| highlight nCursor guifg=#752f4d guibg=#ba7cbb | |
| highlight iCursor guifg=#1b1818 guibg=#97bad0 | |
| highlight vCursor guifg=#1b1818 guibg=#FFFFFF | |
| highlight rCursor guifg=#1b1818 guibg=#FFFFFF | |
| highlight Cursor guifg=#1b1818 guibg=#FFFFFF | |
| highlight cCursor guifg=#1b1818 guibg=#FFFFFF | |
| set guicursor=n:block-Cursor | |
| set guicursor+=i:block-iCursor | |
| set guicursor+=n-v-c:noblink |
| function noted -a 'filename' | |
| cd ~/Documents/notes | |
| if test -n "$filename" | |
| if test -e "$argv.md" | |
| echo "opening daily note" | |
| nvim "$argv.md" | |
| else | |
| echo "creating new daily note, opening" | |
| touch "$argv.md" | |
| nvim "$argv.md" |
| daily_note() { | |
| cd ~/Documents/notes | |
| if [ -e "$(date +%F).md" ] | |
| then | |
| echo "opening daily note" | |
| nvim "$(date +%F).md" | |
| else | |
| echo "creating new daily note, opening" | |
| cp ./templates/daily_note.md "$(date +%F).md" | |
| nvim "$(date +%F).md" |
for diagnostics:
vim.diagnostic.config {
virtual_text = false,
float = {
header = false,
border = 'rounded',
focusable = true,
},