aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/options.lua
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-08-12 15:25:31 +0200
committerWilliam Hergès <william@herges.fr>2025-08-12 15:25:31 +0200
commit3fa491d7a40304b27040cbd650ff23cca293e8b2 (patch)
tree2212e26cdc1f3d313a6fc0a8f017a70a838e6527 /config/nvim/lua/options.lua
parentab93bfa16d109a09d49e35e77e7fb2634f8bb0c1 (diff)
feat(config): nvim
Diffstat (limited to 'config/nvim/lua/options.lua')
-rw-r--r--config/nvim/lua/options.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/nvim/lua/options.lua b/config/nvim/lua/options.lua
new file mode 100644
index 0000000..a937c38
--- /dev/null
+++ b/config/nvim/lua/options.lua
@@ -0,0 +1,22 @@
+vim.opt.completeopt = {'menu', 'menuone', 'noselect'}
+
+vim.opt.tabstop = 4 -- number of visual spaces per TAB
+vim.opt.softtabstop = 4 -- number of spacesin tab when editing
+vim.opt.shiftwidth = 4 -- insert 4 spaces on a tab
+vim.opt.expandtab = true -- tabs are spaces, mainly because of python
+
+vim.opt.number = true -- show absolute number
+vim.opt.relativenumber = true -- add numbers to each line on the left side
+vim.opt.cursorline = true -- highlight cursor line underneath the cursor horizontally
+vim.opt.splitbelow = true -- open new vertical split bottom
+vim.opt.splitright = true -- open new horizontal splits right
+
+vim.opt.incsearch = true -- search as characters are entered
+vim.opt.ignorecase = true -- ignore case in searches by default
+vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered
+
+vim.filetype.add({
+ extension = {
+ heex = 'eelixir'
+ }
+})