# Command for loading config files
# This helps to keep the config neat and tidy
define-command load -params 2 %{
    source "%val{config}/%arg{1}/%arg{2}.kak"
}

# Plugins

load config plugins

# Additional syntaxes

load syntaxes capnp
load syntaxes hjson
load syntaxes hyprlang
load syntaxes json5
load syntaxes kdl
load syntaxes kitty
load syntaxes rainbow_csv
load syntaxes sshconfig

# Utility commands

load utils beacon
load utils whitespace

# Tool integration

load tools clipboard
load tools fzf
load tools kitty
load tools lazygit
load tools xplr

# Colorscheme/options

load config options

# Mappings

load config mappings

# Filetype-specific configs

load filetypes fennel
load filetypes go
load filetypes kak
load filetypes kdl
load filetypes lua
load filetypes python
load filetypes rust
load filetypes sh
load filetypes yaml

# Local config (needs to come after everything else)

load config local_config
