From 991091228f9e403015edd0106ccfc3a0ce62e304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Wed, 24 Jul 2024 22:10:02 +0200 Subject: nvim: continue fennel porting Yeah I'm lazy but these are my dotfiles. A quick summary: * plugins.lsp.attach is now ported * toast.core is reorganized * new nil? and number? checks * new assoc function * new toast.table.unpack function (cross lua compat) * toast.macros.tbl now uses assoc instead of from-pairs and group * apparently I had forgotten to add {pre,post,init}.fnl before, so that's done now Still todo: ftplugin, colors. --- dot_config/nvim/pre.fnl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dot_config/nvim/pre.fnl (limited to 'dot_config/nvim/pre.fnl') diff --git a/dot_config/nvim/pre.fnl b/dot_config/nvim/pre.fnl new file mode 100644 index 0000000..13fd676 --- /dev/null +++ b/dot_config/nvim/pre.fnl @@ -0,0 +1,26 @@ +(set vim.g.mapleader " ") +(set vim.g.maplocalleader "\\") + +(local options {:timeoutlen 300 + :clipboard :unnamedplus + :completeopt "menu,menuone,noselect" + :mouse :a + :smartcase true + :smartindent true + :backup false + :swapfile false + :termguicolors true + :expandtab false + :shiftwidth 4 + :tabstop 4 + :number true + :numberwidth 2 + :scrolloff 4 + :sidescrolloff 4 + :foldmethod :expr + :foldexpr "nvim_treesitter#foldexpr()" + :foldlevelstart 99 + :wrap true}) + +(each [k v (pairs options)] + (tset vim.opt k v)) -- cgit v1.2.3