Compare commits

..

2 Commits

Author SHA1 Message Date
85a98b8019
Added new config 2023-01-16 09:48:37 +01:00
c28cbdfc10
Added the config nvim 2023-01-16 09:48:16 +01:00
3 changed files with 1064 additions and 964 deletions

View File

@ -1,5 +1,6 @@
{ {
"global": { "global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true, "check_for_updates_on_startup": true,
"show_in_menu_bar": false, "show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false, "show_profile_name_in_menu_bar": false,
@ -23,8 +24,12 @@
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -38,8 +43,12 @@
"from": { "from": {
"key_code": "j", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -53,8 +62,12 @@
"from": { "from": {
"key_code": "k", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -68,8 +81,12 @@
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -88,8 +105,13 @@
"from": { "from": {
"key_code": "j", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": ["left_control", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -105,8 +127,13 @@
"from": { "from": {
"key_code": "k", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": ["left_control", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -122,8 +149,12 @@
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
"mandatory": ["fn"], "mandatory": [
"optional": ["any"] "fn"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -139,8 +170,12 @@
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": ["fn"], "mandatory": [
"optional": ["any"] "fn"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -156,8 +191,13 @@
"from": { "from": {
"key_code": "u", "key_code": "u",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -171,8 +211,13 @@
"from": { "from": {
"key_code": "o", "key_code": "o",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -186,8 +231,13 @@
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -203,8 +253,13 @@
"from": { "from": {
"key_code": "j", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -220,8 +275,13 @@
"from": { "from": {
"key_code": "k", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -237,8 +297,13 @@
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -254,8 +319,13 @@
"from": { "from": {
"key_code": "q", "key_code": "q",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -269,8 +339,13 @@
"from": { "from": {
"key_code": "e", "key_code": "e",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_option",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -590,6 +665,16 @@
"ignore": false, "ignore": false,
"manipulate_caps_lock_led": true, "manipulate_caps_lock_led": true,
"simple_modifications": [ "simple_modifications": [
{
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
]
},
{ {
"from": { "from": {
"key_code": "left_command" "key_code": "left_command"
@ -609,16 +694,6 @@
"key_code": "right_command" "key_code": "right_command"
} }
] ]
},
{
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
]
} }
], ],
"treat_as_built_in_keyboard": false "treat_as_built_in_keyboard": false
@ -776,6 +851,31 @@
} }
], ],
"treat_as_built_in_keyboard": false "treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 615,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": {
"consumer_key_code": "eject"
},
"to": [
{
"consumer_key_code": "al_terminal_lock_or_screensaver"
}
]
}
],
"treat_as_built_in_keyboard": false
} }
], ],
"fn_function_keys": [ "fn_function_keys": [

View File

@ -120,19 +120,19 @@
], ],
[ [
"KC_TRNS", "KC_TRNS",
"KC_F1", "KC_TRNS",
"KC_F2", "KC_TRNS",
"KC_F3", "KC_TRNS",
"KC_F4", "KC_TRNS",
"BL_DEC", "BL_DEC",
"BL_INC", "BL_INC",
"KC_MPRV", "KC_MPRV",
"KC_MPLY", "KC_MPLY",
"KC_MNXT", "KC_MNXT",
"KC_F10",
"KC_F11",
"KC_F12",
"KC_TRNS", "KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_PSCR",
"KC_NO", "KC_NO",
"RGB_TOG", "RGB_TOG",
"KC_TRNS", "KC_TRNS",
@ -264,7 +264,7 @@
"KC_RBRC", "KC_RBRC",
"KC_BSLS", "KC_BSLS",
"KC_NO", "KC_NO",
"KC_PGUP", "KC_PGDN",
"KC_ESC", "KC_ESC",
"KC_A", "KC_A",
"KC_S", "KC_S",
@ -328,7 +328,7 @@
"KC_TRNS", "KC_TRNS",
"KC_TRNS", "KC_TRNS",
"KC_TRNS", "KC_TRNS",
"KC_TRNS", "KC_PSCR",
"KC_NO", "KC_NO",
"RGB_TOG", "RGB_TOG",
"KC_TRNS", "KC_TRNS",

View File

@ -342,7 +342,7 @@ autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=fals
let g:neoformat_try_formatprg = 1 let g:neoformat_try_formatprg = 1
let g:neoformat_basic_format_trim = 1 let g:neoformat_basic_format_trim = 1
let g:neoformat_only_msg_on_error = 1 let g:neoformat_only_msg_on_error = 1
autocmd BufWritePre * silent! undojoin | Neoformat " autocmd BufWritePre * silent! undojoin | Neoformat
let g:neoformat_python_black = { let g:neoformat_python_black = {
\ 'exe': 'black', \ 'exe': 'black',
\ 'stdin': 1, \ 'stdin': 1,
@ -611,7 +611,7 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1 autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1
autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙' autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙'
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
autocmd BufWritePre * silent! undojoin | Neoformat prettier " autocmd BufWritePre * silent! undojoin | Neoformat prettier
" Go " Go
autocmd BufRead *.go set noexpandtab autocmd BufRead *.go set noexpandtab