diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-22 10:18:07 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-22 10:18:07 +0100 |
| commit | 5455aacdedfb2829f000b2f120a6d5194d1227f8 (patch) | |
| tree | ca73cfdf3b9106aab00c5acb3d239df61e9c43d9 /lua/config/options.lua | |
| parent | bf157b642c2910abae1810c985817e42502000b5 (diff) | |
| download | nvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.tar.gz nvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.zip | |
feat: big change on the structure of the plugins, move several things to config dir
Diffstat (limited to 'lua/config/options.lua')
| -rw-r--r-- | lua/config/options.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lua/config/options.lua b/lua/config/options.lua new file mode 100644 index 0000000..21b0c68 --- /dev/null +++ b/lua/config/options.lua @@ -0,0 +1,43 @@ +vim.g.mapleader = " " +vim.g.snippets = "luasnip" + +local opt = vim.o + +opt.mouse = false +opt.number = true +opt.relativenumber = true +opt.conceallevel = 3 +opt.hidden = true +opt.expandtab = true +opt.tabstop = 4 +opt.softtabstop = 4 +opt.shiftwidth = 4 +opt.smartindent = true +opt.errorbells = false +opt.wrap = false +opt.swapfile = false +opt.undofile = true +opt.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir" +opt.hlsearch = false +opt.incsearch = true +opt.ignorecase = true +opt.smartcase = true +opt.termguicolors = true +opt.scrolloff = 4 +opt.sidescrolloff = 4 +opt.showmode = false +opt.clipboard = "unnamedplus" +opt.splitbelow = true +opt.splitright = true +opt.autowrite = true +opt.list = true +opt.listchars = "tab:\\ ,trail:-" +opt.laststatus = 3 +opt.cmdheight = 1 +opt.updatetime = 50 +opt.signcolumn = "yes" + +if vim.fn.has("nvim-0.9.0") == 1 then + opt.splitkeep = "screen" + opt.shortmess = "filnxtToOFWIcC" +end |