Skip to content

Commit 206ddd7

Browse files
nvim: fix gleam commentstring
1 parent c42ed46 commit 206ddd7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/nvim/lua/minizilla/misc.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ require('leap').add_default_mappings()
55

66
require('nvim-autopairs').setup()
77

8+
-- TODO: find out why gleam commentstring is not properly set
9+
vim.api.nvim_create_autocmd("FileType", {
10+
pattern = "gleam",
11+
callback = function()
12+
vim.bo.commentstring = "// %s"
13+
end,
14+
})
15+
816
map('<Leader>mp', '<Plug>MarkdownPreviewToggle')
917

1018
local mark = require('harpoon.mark')

0 commit comments

Comments
 (0)