" Lux filetype settings

" Indentation
setlocal expandtab
setlocal shiftwidth=4
setlocal softtabstop=4
setlocal tabstop=4

" Comments
setlocal commentstring=//\ %s
setlocal comments=://

" Folding
setlocal foldmethod=syntax

" Match pairs
setlocal matchpairs+=<:>

" Format options
setlocal formatoptions-=t
setlocal formatoptions+=croql

" Completion
setlocal omnifunc=v:lua.vim.lsp.omnifunc

" Key mappings for Lux development
nnoremap <buffer> <localleader>r :!lux %<CR>
nnoremap <buffer> <localleader>f :!lux fmt %<CR>
nnoremap <buffer> <localleader>t :!lux test<CR>
