2023-08-02 01:29:27 +00:00
|
|
|
vim.api.nvim_create_autocmd({ "BufNewFile", "BufFilePost", "BufRead" }, {
|
|
|
|
pattern = "*.gmi",
|
|
|
|
callback = function()
|
|
|
|
vim.bo.filetype = "gemini"
|
|
|
|
vim.bo.syntax = "gemini"
|
|
|
|
vim.bo.textwidth = 0
|
|
|
|
vim.o.colorcolumn = ""
|
2024-03-06 22:47:10 +00:00
|
|
|
vim.bo.comments = ""
|
2023-08-02 01:29:27 +00:00
|
|
|
vim.o.wrap = true
|
2023-08-03 14:17:30 +00:00
|
|
|
vim.o.linebreak = true
|
2023-08-02 01:29:27 +00:00
|
|
|
vim.keymap.set({"n"}, "j", "gj")
|
|
|
|
vim.keymap.set({"n"}, "k", "gk")
|
|
|
|
end,
|
|
|
|
})
|