neovim: update base configuration
This commit is contained in:
parent
56d96eaf2c
commit
d118957bb5
1 changed files with 10 additions and 8 deletions
|
@ -22,19 +22,21 @@ with lib;
|
||||||
luaRcContent = # lua
|
luaRcContent = # lua
|
||||||
''
|
''
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.opt.tabstop = 2
|
vim.o.tabstop = 2
|
||||||
vim.opt.shiftwidth = 2
|
vim.o.shiftwidth = 2
|
||||||
vim.opt.expandtab = true
|
vim.o.expandtab = true
|
||||||
vim.opt.ignorecase = true
|
vim.o.ignorecase = true
|
||||||
vim.opt.smartcase = true
|
vim.o.smartcase = true
|
||||||
-- TODO: fix option name
|
vim.o.nrformats = alpha
|
||||||
-- vim.opt.nformats = alpha
|
|
||||||
vim.bo.softtabstop = 2
|
vim.bo.softtabstop = 2
|
||||||
|
vim.wo.foldmethod = 'expr'
|
||||||
|
vim.wo.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
|
vim.o.foldlevelstart = 99
|
||||||
|
|
||||||
vim.wo.number = true
|
vim.wo.number = true
|
||||||
vim.wo.relativenumber = true
|
vim.wo.relativenumber = true
|
||||||
|
|
||||||
vim.opt.scrolloff = 10
|
vim.o.scrolloff = 20
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue