From 0ddea2c43d989bbb8cdc95d7ad287c335d7fc500 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Thu, 27 Jan 2022 21:04:24 -0600 Subject: [PATCH] add configuration for cue --- dotfiles/kakoune/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotfiles/kakoune/default.nix b/dotfiles/kakoune/default.nix index a19ed51..bb6bb0c 100644 --- a/dotfiles/kakoune/default.nix +++ b/dotfiles/kakoune/default.nix @@ -229,6 +229,15 @@ in { set-option buffer indentwidth %arg{1} } + hook global WinSetOption filetype=cue %{ + noexpandtab + set-option buffer tabstop 4 + + # formatting + set-option buffer formatcmd "${pkgs.cue}/bin/cue fmt -s -" + hook buffer BufWritePre .* format + } + hook global WinSetOption filetype=elm %{ expandtab-with-width 4