From 00774486ca8c1bfc5189bbfb85d09c1b7419beda Mon Sep 17 00:00:00 2001 From: Secret Specter Date: Tue, 1 Aug 2023 19:29:27 -0600 Subject: [PATCH] gemini --- fnl/init.fnl | 2 +- ftdetect/gemini.lua | 12 ++++++++++++ lazy-lock.json | 7 +++---- 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 ftdetect/gemini.lua diff --git a/fnl/init.fnl b/fnl/init.fnl index 3fce754..b474431 100644 --- a/fnl/init.fnl +++ b/fnl/init.fnl @@ -15,7 +15,7 @@ "https://github.com/preservim/vim-markdown" "https://github.com/richardbizik/nvim-toc" "https://github.com/nvim-lua/plenary.nvim" - "https://github.com/serenevoid/kiwi.nvim" + ;TODO want gemwiki "https://github.com/serenevoid/kiwi.nvim" {:url "https://github.com/neovim/nvim-lspconfig" :dependencies ["https://github.com/williamboman/mason.nvim" :williamboman/mason-lspconfig.nvim diff --git a/ftdetect/gemini.lua b/ftdetect/gemini.lua new file mode 100644 index 0000000..0c5b62f --- /dev/null +++ b/ftdetect/gemini.lua @@ -0,0 +1,12 @@ +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 = "" + vim.o.wrap = true + vim.keymap.set({"n"}, "j", "gj") + vim.keymap.set({"n"}, "k", "gk") + end, +}) diff --git a/lazy-lock.json b/lazy-lock.json index 4cd3b58..57667aa 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -10,15 +10,14 @@ "fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" }, "friendly-snippets": { "branch": "main", "commit": "bc38057e513458cb2486b6cd82d365fa294ee398" }, "hotpot.nvim": { "branch": "master", "commit": "026eba9596b506ab6f807fd4aa93cd5f76255725" }, - "kiwi.nvim": { "branch": "master", "commit": "5a9e5234398f9595cec86419196e4a47b36a354d" }, "lazy.nvim": { "branch": "main", "commit": "dac844ed617dda4f9ec85eb88e9629ad2add5e05" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "e86a4c84ff35240639643ffed56ee1c4d55f538e" }, "mason.nvim": { "branch": "main", "commit": "fe9e34a9ab4d64321cdc3ecab4ea1809239bb73f" }, "neodev.nvim": { "branch": "main", "commit": "2973d6c56cbde46c04e12476bb40eefd516d5f35" }, "nvim-cmp": { "branch": "main", "commit": "c4e491a87eeacf0408902c32f031d802c7eafce8" }, - "nvim-lspconfig": { "branch": "master", "commit": "b6091272422bb0fbd729f7f5d17a56d37499c54f" }, - "nvim-paredit": { "branch": "master", "commit": "111c8c8f637a8c2e3e8b78bb0d491f72b10ae875" }, - "nvim-treesitter": { "branch": "master", "commit": "1c79da3300951e934f635eaf8703480b57644e7e" }, + "nvim-lspconfig": { "branch": "master", "commit": "a59d74e12340242c0735666fb2e91afdbe6f2496" }, + "nvim-toc": { "branch": "main", "commit": "8ae6c9171198103e8aa603055b899b6a29e9a09a" }, + "nvim-treesitter": { "branch": "master", "commit": "4c4d586a05e236d8199ab6faab8cb733a9b5bd24" }, "plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "9bc8237565ded606e6c366a71c64c0af25cd7a50" }, "telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },