diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-04-29 22:52:59 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-04-29 22:52:59 +0200 |
| commit | 70b642568d5d6d7a26b756e2daacf0c2ee75dd3d (patch) | |
| tree | 26d82fe4c0bb4e58674f071a56e770925829e658 /lua/pml68/settings.lua | |
| parent | feat: disable scrollbar for nvim-cmp, add cmp-buffer plugin and source (diff) | |
| download | nvim-70b642568d5d6d7a26b756e2daacf0c2ee75dd3d.tar.gz | |
refactor: create discrete lua file for vim.o and vim.g settings
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/settings.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/pml68/settings.lua b/lua/pml68/settings.lua new file mode 100644 index 0000000..95c9538 --- /dev/null +++ b/lua/pml68/settings.lua @@ -0,0 +1,29 @@ +vim.o.rnu = true +vim.o.nu = true + +vim.o.shiftwidth = 2 +vim.o.tabstop = 2 +vim.o.softtabstop = 2 +vim.o.expandtab = true + +vim.o.smartindent = true + +vim.o.swapfile = false + +vim.o.scrolloff = 10 + +vim.o.hlsearch = true +vim.o.incsearch = true + +vim.o.clipboard = "unnamedplus" + +vim.o.termguicolors = true + +vim.opt.whichwrap:append "<>[]hl" + +vim.g.netrw_browse_split = 0 +vim.g.netrw_banner = 0 +vim.g.netrw_winsize = 25 + +vim.o.foldmethod = "expr" +vim.o.foldexpr = "v:lua.vim.treesitter.foldexpr()" |
