most notably vim-sexp works with fennel and racket now!

This commit is contained in:
secretspecter 2024-03-06 15:47:10 -07:00
parent b267732f5b
commit e5d81f61cc
8 changed files with 64 additions and 70 deletions

View file

@ -14,9 +14,9 @@ quote_style = double
# optional space/tab
indent_style = space
# if indent_style is space, this is valid
indent_size = 4
indent_size = 2
# if indent_style is tab, this is valid
tab_width = 4
tab_width = 2
# none/single/double
quote_style = none

View file

@ -1,49 +0,0 @@
(let [lazy (require :lazy)]
(lazy.setup ["https://github.com/rktjmp/hotpot.nvim"
{:url "https://github.com/nvim-treesitter/nvim-treesitter"
:build ":TSUpdate"}
"https://github.com/guns/vim-sexp"
"https://github.com/ludovicchabant/vim-gutentags"
"https://github.com/preservim/vim-markdown"
"https://github.com/richardbizik/nvim-toc"
"https://github.com/nvim-lua/plenary.nvim"
{:url "https://github.com/neovim/nvim-lspconfig"
:dependencies ["https://github.com/williamboman/mason.nvim"
:williamboman/mason-lspconfig.nvim
{:url "https://github.com/j-hui/fidget.nvim"
:tag :legacy
:opts {}}
"https://github.com/folke/neodev.nvim"]}
{:url "https://github.com/hrsh7th/nvim-cmp"
:dependencies ["https://github.com/hrsh7th/cmp-nvim-lsp"
"https://github.com/hrsh7th/cmp-buffer"
"https://github.com/hrsh7th/cmp-path"
"https://github.com/hrsh7th/cmp-cmdline"
"https://github.com/hrsh7th/cmp-cmdline"]}
{:url "https://github.com/L3MON4D3/LuaSnip"
:dependencies ["https://github.com/saadparwaiz1/cmp_luasnip"
"https://github.com/rafamadriz/friendly-snippets"]}
{:url "https://github.com/nvim-telescope/telescope.nvim"
:tag :0.1.2
:dependencies [{:url "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
:build (.. "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release"
" && cmake --build build --config Release"
" && cmake --install build --prefix build")}
"https://github.com/xiyaowong/telescope-emoji.nvim"]}
"https://github.com/sainnhe/everforest"
"https://github.com/tamton-aquib/duck.nvim"]))
(let [personalize (require :personalize)]
(personalize.options)
(personalize.keymap))
(set vim.g.vim_markdown_folding_disabled 1)
(let [telescope (require :telescope)]
;(pcall (telescope.load_extension :fzf))
(pcall (telescope.load_extension :emoji)))
(require :setup-treesitter)
;TODO (require :setup-paredit)
(require :setup-mason)
(require :setup-cmp)

View file

@ -33,16 +33,15 @@
{:pattern "term://*"
:command "startinsert"})
(nmap :<leader>dj
#(vim.cmd (.. "split ~/TDC-Obsidian/Journal/"
#(vim.cmd (.. "vsplit ~/TDC-Obsidian/Journal/"
(os.date "%Y") "/"
(os.date "%m") "/"
(os.date "%Y-%m-%d")
".md"
"|resize 8|$")
".md")
"Open today's journal"))
(nmap :<leader>p ":Telescope find_files<cr>" "Telescope find_files")
(nmap :<leader>o ":Telescope buffers<cr>" "Telescope buffers")
(nmap :<leader>f ":Telescope live_grep<cr>" "Telescope live_grep")
(nmap :<leader>o ":Telescope find_files<cr>" "Telescope find_files")
(nmap :<leader>b ":Telescope buffers<cr>" "Telescope buffers")
(nmap :<leader>s ":Telescope live_grep<cr>" "Telescope live_grep")
(nmap :<leader>e ":Telescope emoji<cr>" "Telescope emoji")
(let [duck (require :duck)]
(nmap :<leader><leader> #(duck.hatch) "hatch a duck")
@ -53,7 +52,8 @@
:vim
:vimdoc
:query
:fennel]
:fennel
:racket]
:language-servers {:lua_ls {:filetypes [:lua]
:Lua {:workspace {:checkThirdParty false}}
:telemetry {:enable false}

49
fnl/plugins.fnl Normal file
View file

@ -0,0 +1,49 @@
(set vim.g.vim_markdown_folding_disabled 1)
(set vim.g.sexp_filetypes "racket,fennel")
(let [lazy (require :lazy)]
(lazy.setup ["https://github.com/rktjmp/hotpot.nvim"
{:url "https://github.com/nvim-treesitter/nvim-treesitter"
:build ":TSUpdate"}
"https://github.com/guns/vim-sexp"
;"https://github.com/ludovicchabant/vim-gutentags"
"https://github.com/preservim/vim-markdown"
"https://github.com/richardbizik/nvim-toc"
"https://github.com/nvim-lua/plenary.nvim"
{:url "https://github.com/neovim/nvim-lspconfig"
:dependencies ["https://github.com/williamboman/mason.nvim"
:williamboman/mason-lspconfig.nvim
{:url "https://github.com/j-hui/fidget.nvim"
:tag :legacy
:opts {}}
"https://github.com/folke/neodev.nvim"]}
{:url "https://github.com/hrsh7th/nvim-cmp"
:dependencies ["https://github.com/hrsh7th/cmp-nvim-lsp"
"https://github.com/hrsh7th/cmp-buffer"
"https://github.com/hrsh7th/cmp-path"
"https://github.com/hrsh7th/cmp-cmdline"
"https://github.com/hrsh7th/cmp-cmdline"]}
{:url "https://github.com/L3MON4D3/LuaSnip"
:dependencies ["https://github.com/saadparwaiz1/cmp_luasnip"
"https://github.com/rafamadriz/friendly-snippets"]}
{:url "https://github.com/nvim-telescope/telescope.nvim"
:tag :0.1.2
:dependencies [{:url "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
:build (.. "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release"
" && cmake --build build --config Release"
" && cmake --install build --prefix build")}
"https://github.com/xiyaowong/telescope-emoji.nvim"]}
"https://github.com/sainnhe/everforest"
"https://github.com/tamton-aquib/duck.nvim"]))
(let [personalize (require :personalize)]
(personalize.options)
(personalize.keymap))
(let [telescope (require :telescope)]
;(pcall (telescope.load_extension :fzf))
(pcall (telescope.load_extension :emoji)))
(require :setup-treesitter)
(require :setup-mason)
(require :setup-cmp)

View file

@ -1,5 +0,0 @@
(let [kiwi (require :kiwi)
nmap #(vim.keymap.set [:n] $1 $2 {:desc (.. "[kiwi]" $3)})]
(nmap :<leader>ww kiwi.open_wiki_index "Open wiki")
(nmap :<leader>wd kiwi.open_diary_index "Open diary")
(nmap :<leader>wn kiwi.open_diary_new "New diary entry"))

View file

@ -4,8 +4,8 @@ vim.api.nvim_create_autocmd({ "BufNewFile", "BufFilePost", "BufRead" }, {
vim.bo.filetype = "gemini"
vim.bo.syntax = "gemini"
vim.bo.textwidth = 0
vim.bo.comments = ""
vim.o.colorcolumn = ""
vim.bo.comments = ""
vim.o.wrap = true
vim.o.linebreak = true
vim.keymap.set({"n"}, "j", "gj")

View file

@ -27,4 +27,4 @@ require("hotpot")
-- the rest of this config is written in Fennel
-- https://fennel-lang.org/
require("boot")
require("plugins")

View file

@ -15,14 +15,13 @@
"mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" },
"neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" },
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
"nvim-lspconfig": { "branch": "master", "commit": "7f5cf1121f772850a30bdaf83fb448e88846aa58" },
"nvim-lspconfig": { "branch": "master", "commit": "e5e600232188ed9fb960f5df6bb06084ae8bf3ec" },
"nvim-toc": { "branch": "main", "commit": "afc27debc800129c50c5b870846ce1a5c9ce4479" },
"nvim-treesitter": { "branch": "master", "commit": "212b7a504cf56f85d1acc5be237261b42d7560c5" },
"plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
"nvim-treesitter": { "branch": "master", "commit": "c09932bd2de01dc9c01e870fe83060693c67de13" },
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
"telescope-emoji.nvim": { "branch": "master", "commit": "86248d97be84a1ce83f0541500ef9edc99ea2aa1" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
"telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
"vim-gutentags": { "branch": "master", "commit": "aa47c5e29c37c52176c44e61c780032dfacef3dd" },
"vim-markdown": { "branch": "master", "commit": "a657e697376909c41475a686eeef7fc7a4972d94" },
"vim-sexp": { "branch": "master", "commit": "14464d4580af43424ed8f2614d94e62bfa40bb4d" }
}