summaryrefslogtreecommitdiff
path: root/lua/config.lua
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2023-04-02 17:44:43 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2023-04-02 17:44:43 +0200
commit65f0046083b6239bdd76a81af63e3cad4516c75a (patch)
tree46677f49f4d34e40f6a0c8ae87732823c836f6c6 /lua/config.lua
Initial commit
Diffstat (limited to 'lua/config.lua')
-rw-r--r--lua/config.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/lua/config.lua b/lua/config.lua
new file mode 100644
index 0000000..b5b9d89
--- /dev/null
+++ b/lua/config.lua
@@ -0,0 +1,27 @@
+vim.o.shiftwidth = 4
+vim.o.tabstop = 4
+vim.o.softtabstop = 4
+vim.o.expandtab = true
+
+vim.o.hlsearch = false
+vim.o.number = true
+vim.o.mouse = "a"
+vim.o.ignorecase = true
+vim.o.smartcase = true
+vim.o.updatetime = 100
+vim.o.timeout = true
+vim.o.timeoutlen = 300
+vim.o.completeopt = "menuone,noselect"
+vim.o.termguicolors = true
+vim.o.swapfile = false
+vim.o.backup = false
+vim.o.incsearch = true
+vim.o.scrolloff = 5
+vim.o.colorcolumn = "80,120"
+
+vim.o.autoread = true
+vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "CursorHoldI", "FocusGained" }, {
+ command = "if mode() != 'c' | checktime | endif",
+ pattern = { "*" },
+})
+