added latex support and reorg ftplugins

This commit is contained in:
Jeremie Fraeys 2024-08-20 01:31:44 -04:00
parent 7f1b34fd6f
commit f2eaf7c67a
38 changed files with 600 additions and 234 deletions

10
ftplugin/go.lua Normal file
View file

@ -0,0 +1,10 @@
-- Set buffer-local options for Go files
vim.opt_local.expandtab = true
vim.opt_local.commentstring = '// %s'
vim.opt_local.comments = 's1:/*,mb:*,ex:*/,://'
-- Define a key mapping to trigger Go debugging
vim.keymap.set('n', '<leader>td', function()
require('dap-go').debug_test()
end, { buffer = 0 }) -- Set buffer-local key mapping