nvim-config/ftdetect/gemini.lua

15 lines
389 B
Lua
Raw Normal View History

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
2023-08-02 04:56:30 +00:00
vim.bo.comments = ""
2023-08-02 01:29:27 +00:00
vim.o.colorcolumn = ""
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,
})