2022-04-03 21:05:52 -05:00
|
|
|
-- recognize csx files as csharp
|
|
|
|
vim.api.nvim_command('au BufRead,BufNewFile *.csx set filetype=cs')
|
|
|
|
|
|
|
|
-- enable dadbod completion for sql files
|
|
|
|
vim.api.nvim_command("au FileType sql let b:db = exists('*DotenvGet') ? DotenvGet('DATABASE_URL') : eval('$DATABASE_URL')")
|
|
|
|
vim.api.nvim_command([[au FileType sql lua require'cmp'.setup.buffer {
|
|
|
|
sources = {
|
|
|
|
{ name = 'vim-dadbod-completion' },
|
|
|
|
{ name = 'buffer' },
|
|
|
|
}}
|
|
|
|
]])
|
2023-09-12 11:47:09 -05:00
|
|
|
|
|
|
|
-- word break and spelling in markdown files
|
|
|
|
vim.api.nvim_command('au BufRead,BufNewFile *.md set spell lbr')
|
2024-04-05 12:24:01 -05:00
|
|
|
|
|
|
|
-- hard wrap and spelling in gph files
|
|
|
|
vim.api.nvim_command('au BufRead,BufNewFile *.gph set spell tw=72 colorcolumn=+0')
|