Compare commits
No commits in common. "64f8d33ba273d87057dcd5fb28cf5eedb2ef4507" and "e17381226766d49f66e488fb3c451c9aa04e9362" have entirely different histories.
64f8d33ba2
...
e173812267
@ -4,16 +4,6 @@
|
|||||||
{
|
{
|
||||||
"complex_modifications": {
|
"complex_modifications": {
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
|
||||||
"description": "Maps F5 to ⌘⇧M in MS Teams or ⌘⇧A to ZOOM. F5 has an MIC symbol on recent MacOS keyboards.",
|
|
||||||
"manipulators": [
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f5" },
|
|
||||||
"to": [{ "shell_command": "if [ $(ps aux | grep -v grep | grep -ci \"Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app\") -gt 0 ]; then osascript -e 'activate application id \"com.microsoft.teams\"' -e 'tell application \"System Events\" to keystroke \"m\" using {command down, shift down}'; fi & if [ $(ps aux | grep -v grep | grep -ci \"zoom.us.app/Contents/Frameworks/cpthost.app/Contents/MacOS/CptHost\") -gt 0 ]; then osascript -e 'activate application id \"us.zoom.xos\"' -e 'tell application \"System Events\" to keystroke \"a\" using {command down, shift down}'; fi" }],
|
|
||||||
"type": "basic"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "Change right_command+hjkl to arrow keys",
|
"description": "Change right_command+hjkl to arrow keys",
|
||||||
"manipulators": [
|
"manipulators": [
|
||||||
|
@ -15,10 +15,6 @@ keep-open=yes
|
|||||||
# Always save the current playback position on exit
|
# Always save the current playback position on exit
|
||||||
save-position-on-quit=yes
|
save-position-on-quit=yes
|
||||||
|
|
||||||
# Geometry settings
|
|
||||||
geometry=50%:50%
|
|
||||||
autofit=50%
|
|
||||||
|
|
||||||
# Create 'high-quality' profile
|
# Create 'high-quality' profile
|
||||||
[high-quality]
|
[high-quality]
|
||||||
# Describe this profile
|
# Describe this profile
|
||||||
|
@ -244,31 +244,27 @@ require'lspconfig'.yamlls.setup{
|
|||||||
-- Setup GoLang
|
-- Setup GoLang
|
||||||
require'lspconfig'.gopls.setup {
|
require'lspconfig'.gopls.setup {
|
||||||
cmd = {"gopls", "serve"},
|
cmd = {"gopls", "serve"},
|
||||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
filetypes = {"go", "gomod"},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
handlers=handlers,
|
handlers=handlers,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
analyses = {
|
analyses = {
|
||||||
unusedparams = true,
|
unusedparams = true,
|
||||||
},
|
},
|
||||||
staticcheck = true,
|
staticcheck = true,
|
||||||
linksInHover = false,
|
linksInHover = false,
|
||||||
codelenses = {
|
codelenses = {
|
||||||
generate = true,
|
generate = true,
|
||||||
gc_details = true,
|
gc_details = true,
|
||||||
regenerate_cgo = true,
|
regenerate_cgo = true,
|
||||||
tidy = true,
|
tidy = true,
|
||||||
upgrade_depdendency = true,
|
upgrade_depdendency = true,
|
||||||
vendor = true,
|
vendor = true,
|
||||||
},
|
},
|
||||||
completeUnimported = true,
|
usePlaceholders = true,
|
||||||
usePlaceholders = true,
|
},
|
||||||
analyses = {
|
|
||||||
unusedparams = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -619,7 +615,6 @@ let g:shfmt_opt="-ci"
|
|||||||
autocmd BufRead,BufNewFile *.py set textwidth=0
|
autocmd BufRead,BufNewFile *.py set textwidth=0
|
||||||
autocmd BufRead,BufNewFile *.py set fo-=t
|
autocmd BufRead,BufNewFile *.py set fo-=t
|
||||||
autocmd BufWritePre *.py silent! undojoin | Neoformat ruff
|
autocmd BufWritePre *.py silent! undojoin | Neoformat ruff
|
||||||
noremap <Leader>f :silent! undojoin \| Neoformat ruff <CR> :w<CR>
|
|
||||||
|
|
||||||
" Newsboat
|
" Newsboat
|
||||||
autocmd BufRead,BufNewFile urls set textwidth=0
|
autocmd BufRead,BufNewFile urls set textwidth=0
|
||||||
|
@ -425,11 +425,6 @@ function install_taplo() {
|
|||||||
$install taplo
|
$install taplo
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_precommit(){
|
|
||||||
# Install pre-commit
|
|
||||||
$pip install pre-commit $PIPEXTPRE
|
|
||||||
}
|
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
command_start update_pip
|
command_start update_pip
|
||||||
command_start install_neovim_module_for_python
|
command_start install_neovim_module_for_python
|
||||||
@ -463,7 +458,6 @@ function main() {
|
|||||||
command_start install_rust
|
command_start install_rust
|
||||||
command_start install_tss_client
|
command_start install_tss_client
|
||||||
command_start install_taplo
|
command_start install_taplo
|
||||||
command_start install_precommit
|
|
||||||
command_start update
|
command_start update
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
.local/bin/pre-commit
Executable file
4
.local/bin/pre-commit
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
TAG=v1.77.0
|
||||||
|
docker pull --platform linux/amd64 ghcr.io/antonbabenko/pre-commit-terraform:$TAG
|
||||||
|
docker run --platform linux/amd64 -e "USERID=$(id -u):$(id -g)" -v "$(pwd)":/lint -w /lint ghcr.io/antonbabenko/pre-commit-terraform:$TAG run -a
|
Loading…
x
Reference in New Issue
Block a user