added latex support and reorg ftplugins
This commit is contained in:
parent
7f1b34fd6f
commit
f2eaf7c67a
38 changed files with 600 additions and 234 deletions
10
ftplugin/go.lua
Normal file
10
ftplugin/go.lua
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue