mirror of
https://github.com/vim/vim
synced 2025-05-02 22:37:47 +02:00
Problem: filetype: Zephyr overlay files not recognized Solution: detect '*.overlay' files as dts filetype, include syntax tests for DTS files (Xudong Zheng) Reference: https://docs.zephyrproject.org/latest/build/dts/howtos.html closes: #15963 Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
23 lines
365 B
Text
23 lines
365 B
Text
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
// Define macro for layers.
|
|
#define LAYER_MAIN 0
|
|
|
|
/ {
|
|
keymap {
|
|
compatible = "zmk,keymap";
|
|
|
|
layer_0 {
|
|
bindings = <
|
|
&kp Z
|
|
&kp M
|
|
&kp K
|
|
&zmk_string
|
|
&to LAYER_MAIN
|
|
>;
|
|
};
|
|
};
|
|
|
|
ZMK_MACRO(zmk_string, wait-ms = <10>; tap-ms = <10>; bindings = <¯o_tap &kp Z &kp M &kp K>;)
|
|
};
|