diff options
| author | 2023-05-04 10:51:07 -0400 | |
|---|---|---|
| committer | 2023-05-04 10:51:07 -0400 | |
| commit | 74877c136c1601ab5468c4892716a0bff3f1121a (patch) | |
| tree | 56e3abe78a094b9fa070da9e8526a3105135a4b3 /dot_config/nvim/pre.lua | |
| parent | add ~ level editorconfig (diff) | |
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
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/pre.lua | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
