summaryrefslogtreecommitdiff
path: root/dot_config/nvim/pre.lua
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2024-07-24 22:10:02 +0200
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2024-07-24 22:10:02 +0200
commit991091228f9e403015edd0106ccfc3a0ce62e304 (patch)
tree44aa6357e395766f1a340fee08aea546ae69c16c /dot_config/nvim/pre.lua
parentnvim: add empty? and update group (diff)
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.
Diffstat (limited to 'dot_config/nvim/pre.lua')
-rw-r--r--dot_config/nvim/pre.lua35
1 files changed, 8 insertions, 27 deletions
diff --git a/dot_config/nvim/pre.lua b/dot_config/nvim/pre.lua
index 2c822ad..d6c3f96 100644
--- a/dot_config/nvim/pre.lua
+++ b/dot_config/nvim/pre.lua
@@ -1,27 +1,8 @@
-vim.g.mapleader = ' '
-vim.g.maplocalleader = '\\'
-
--- options
-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,
-}
-for k, v in pairs(options) do vim.opt[k] = v end
+-- [nfnl] Compiled from pre.fnl by https://github.com/Olical/nfnl, do not edit.
+vim.g.mapleader = " "
+vim.g.maplocalleader = "\\"
+local options = {timeoutlen = 300, clipboard = "unnamedplus", completeopt = "menu,menuone,noselect", mouse = "a", smartcase = true, smartindent = true, termguicolors = true, shiftwidth = 4, tabstop = 4, number = true, numberwidth = 2, scrolloff = 4, sidescrolloff = 4, foldmethod = "expr", foldexpr = "nvim_treesitter#foldexpr()", foldlevelstart = 99, wrap = true, expandtab = false, backup = false, swapfile = false}
+for k, v in pairs(options) do
+ vim.opt[k] = v
+end
+return nil