Skip to content

Instantly share code, notes, and snippets.

@da99
da99 / config.yaml
Last active April 21, 2024 05:24
Don't use BashLS with Neovim LSP. Use EFM-langserver + shellcheck
version: 2
root-markers:
- .git/
lint-debounce: 1s
tools:
sh-shellcheck: &sh-shellcheck
lint-command: 'shellcheck -f gcc -x'
lint-source: 'shellcheck'
lint-formats:
- '%f:%l:%c: %trror: %m'
@da99
da99 / I_Need_To_Read_This_But_Later.md
Last active August 8, 2022 23:55
Stuff I need to Read:
@da99
da99 / init.vim
Last active April 2, 2022 21:52
Close NeoVim terminal on Exit 0 (successful exit), but keep it open when the command/shell exits with a failure.
" Start terminal in insert mode:
autocmd TermOpen * IndentLinesDisable | startinsert
" In NeoVim, lookup `terminal-status`
:help terminal-status
"This will give you information on how to auto-close the terminal on succesful exit:
"
" From the Neovim help documentation:

[The following useful is old. I haven't been able to update it. It may or may not work. And read all comments below before executing commands.]

Linux and flashing your xd75re keyboard

Here is a photo of the default layout: https://github.com/c4software/xd75re/blob/master/layout/default/default_layout_all_layer.jpg

Create you keyboard layout here: https://config.qmk.fm/#/xd75/LAYOUT_ortho_5x15 Click "Load Default" to bring up the default layout. Edit it or use your own layout. Download the layout to a file because you will want to edit it later again. The layout

@da99
da99 / .vromerc
Last active June 10, 2019 15:06
da99 Vrome conf
unmap <C-f>
unmap <M-d>
unmap <C-g>
@da99
da99 / bin_lua
Last active December 21, 2015 02:59
My customized lua exec (via luajit 2.0) with readline support:. Inspired by: http://dhllndr.blogspot.com/2012/03/luajit-as-interpreter-adding-readline.html
#!/usr/bin/env bash
# -*- bash -*-
#
cmd="$@"
if [[ -z "$@" ]]
then
rlwrap luajit
else
luajit "$@"
@da99
da99 / lua
Created August 15, 2013 07:18
My customized lua exec (via luajit 2.0) with readline support:. Inspired by: http://dhllndr.blogspot.com/2012/03/luajit-as-interpreter-adding-readline.html
#!/usr/bin/env bash
# -*- bash -*-
#
cmd="$@"
if [[ -z "$@" ]]
then
rlwrap lua
else
luajit "$@"