diff --git a/dotfiles/kakrc b/dotfiles/kakrc index 9688194c..9d3a2aaa 100644 --- a/dotfiles/kakrc +++ b/dotfiles/kakrc @@ -184,3 +184,6 @@ hook global WinSetOption filetype=python %{ set-option window formatcmd 'black -q -' } +hook global BufCreate .*\.gleam %{ + set-option buffer filetype gleam +} diff --git a/home/common.nix b/home/common.nix index 0c88ece5..ddb6d511 100644 --- a/home/common.nix +++ b/home/common.nix @@ -30,6 +30,7 @@ in rec { # Programming languages jq rink numbat + gleam glas ghc ( python311.withPackages (ps: with ps; [ numpy matplotlib sympy scipy pandas jupyter diff --git a/home/kak.nix b/home/kak.nix index 71b003a7..557678d4 100644 --- a/home/kak.nix +++ b/home/kak.nix @@ -67,6 +67,11 @@ with pkgs; let filetypes = ["c"] roots = ["compile_commands.json"] command = "clangd" + + [language.gleam] + filetypes = ["gleam"] + roots = ["gleam.toml"] + command = "glas" ''; kak-lsp-config-line = "set global lsp_cmd \"${kak-lsp}/bin/kak-lsp -s %val{session} --config ${kak-lsp-config-file} --log /tmp/kak-lsp.log\"";