From d76a6d97c50b7a4a9ffe9668ede7430a80facde6 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sun, 10 Apr 2022 23:41:23 +0200 Subject: fix(treesitter): install all --- fnl/config/treesitter.fnl | 2 +- fnl/settings/init.fnl | 6 ++++-- fnl/settings/options.fnl | 12 ++++++------ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/fnl/config/treesitter.fnl b/fnl/config/treesitter.fnl index f265533..357859f 100644 --- a/fnl/config/treesitter.fnl +++ b/fnl/config/treesitter.fnl @@ -5,7 +5,7 @@ (let [treesitter (util.load-plugin :nvim-treesitter.configs)] (treesitter.setup - {:ensure_installed "maintained" + {:ensure_installed "all" :sync_install false :ignore_install [ "" ] :autopairs { :enable true } diff --git a/fnl/settings/init.fnl b/fnl/settings/init.fnl index 5c21629..77e2caa 100644 --- a/fnl/settings/init.fnl +++ b/fnl/settings/init.fnl @@ -1,4 +1,6 @@ ;; Load nvim settings (module settings - {require {_ settings.options - _ settings.keymaps}}) + {require { + _ settings.options + _ settings.keymaps + }}) diff --git a/fnl/settings/options.fnl b/fnl/settings/options.fnl index 1526856..02d6275 100644 --- a/fnl/settings/options.fnl +++ b/fnl/settings/options.fnl @@ -40,12 +40,12 @@ } ) -(defn- apply-opts [...] - (each [k v (pairs ...)] +(defn- apply-opts [] + (each [k v (pairs opts)] (tset vim.opt k v))) -(set vim.cmd "set whichwrap+=<,>,[,],h,l") -(set vim.cmd [[set iskeyword+=-]]) -(set vim.cmd [[set formatoptions-=cro]]) -(set nvim.ex.set "shortmess+=c") +(vim.cmd "set whichwrap+=<,>,[,],h,l") +(vim.cmd "set iskeyword+=-") +(vim.cmd "set formatoptions-=cro") +(nvim.ex.set "shortmess+=c") (apply-opts opts) -- cgit v1.2.3-70-g09d2