Skip to content

Commit

Permalink
feat(plugin): commentstring
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
luckasRanarison committed Sep 2, 2023
1 parent 2c10c62 commit 0e19dd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugin/init.lua
@@ -1,3 +1,8 @@
vim.filetype.add({
pattern = { ["~/.config/hypr/.*%.conf"] = "hypr" },
pattern = { ["~/.config/hypr/.*%.conf"] = "hypr" },
})

vim.api.nvim_create_autocmd("FileType", {
pattern = "hypr",
callback = function(event) vim.bo[event.buf].commentstring = "# %s" end,
})

0 comments on commit 0e19dd1

Please sign in to comment.