mirror of
https://github.com/macvim-dev/macvim.git
synced 2025-12-23 12:14:37 +01: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>
24 lines
365 B
Plaintext
24 lines
365 B
Plaintext
#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>;)
|
|
};
|