From d118957bb593fde5bfb83959f561ea4a746c0c01 Mon Sep 17 00:00:00 2001 From: derped Date: Sat, 21 Dec 2024 21:09:49 +0100 Subject: [PATCH] neovim: update base configuration --- pkgsets/nvim.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgsets/nvim.nix b/pkgsets/nvim.nix index bc92bd2..4cb3c75 100644 --- a/pkgsets/nvim.nix +++ b/pkgsets/nvim.nix @@ -22,19 +22,21 @@ with lib; luaRcContent = # lua '' vim.g.mapleader = " " - vim.opt.tabstop = 2 - vim.opt.shiftwidth = 2 - vim.opt.expandtab = true - vim.opt.ignorecase = true - vim.opt.smartcase = true - -- TODO: fix option name - -- vim.opt.nformats = alpha + vim.o.tabstop = 2 + vim.o.shiftwidth = 2 + vim.o.expandtab = true + vim.o.ignorecase = true + vim.o.smartcase = true + vim.o.nrformats = alpha vim.bo.softtabstop = 2 + vim.wo.foldmethod = 'expr' + vim.wo.foldexpr = 'nvim_treesitter#foldexpr()' + vim.o.foldlevelstart = 99 vim.wo.number = true vim.wo.relativenumber = true - vim.opt.scrolloff = 10 + vim.o.scrolloff = 20 ''; }; }