From 74877c136c1601ab5468c4892716a0bff3f1121a Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Thu, 4 May 2023 10:51:07 -0400 Subject: nvim: many changes * add pre and post dot lua with dofile * disable janet plugin (todo: remove once I confirm that the treesitter impl is good enough) * treesitter on janet * custom janet ft detection --- dot_config/nvim/pre.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dot_config/nvim/pre.lua (limited to 'dot_config/nvim/pre.lua') diff --git a/dot_config/nvim/pre.lua b/dot_config/nvim/pre.lua new file mode 100644 index 0000000..3788e18 --- /dev/null +++ b/dot_config/nvim/pre.lua @@ -0,0 +1,26 @@ +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, +} +for k, v in pairs(options) do vim.opt[k] = v end -- cgit v1.2.3