colorscheme gruvbox-dark

# Use 4 spaces for indentation.
# indentwidth controls Kakoune's indentation commands; tabstop controls display width.
set-option global tabstop 4
set-option global indentwidth 4
set-option global makecmd 'bash build.sh'

map global user n :make-next-error<ret>
map global user p :make-previous-error<ret>

# Kakoune does not have a Vim-style 'expandtab' option. Make a literal Tab key
# insert four spaces instead of a tab character while in insert mode.
map global insert <tab> '<space><space><space><space>'

hook global RegisterModified '"' %{ nop %sh{
    printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 &
}}

add-highlighter global/ number-lines
