aboutsummaryrefslogtreecommitdiff
path: root/mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua')
-rw-r--r--mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua51
1 files changed, 51 insertions, 0 deletions
diff --git a/mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua b/mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua
new file mode 100644
index 0000000..e465418
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua
@@ -0,0 +1,51 @@
+local opt = vim.opt
+
+-- Indent
+opt.tabstop = 2
+opt.softtabstop = 2
+opt.shiftwidth = 2
+opt.expandtab = false
+opt.smartindent = true
+opt.wrap = false
+vim.api.nvim_create_autocmd("FileType", {
+ pattern = "bend",
+ callback = function()
+ vim.opt_local.expandtab = true
+ vim.opt_local.tabstop = 4
+ vim.opt_local.shiftwidth = 4
+ end,
+})
+
+
+-- Appearance
+opt.number = true
+opt.relativenumber = false
+opt.cursorline = true
+opt.termguicolors = true
+opt.showmode = true
+opt.colorcolumn = "100"
+opt.signcolumn = "yes"
+opt.cmdheight = 1
+opt.scrolloff = 10
+opt.completeopt = "menuone,noinsert,noselect"
+opt.conceallevel = 3
+
+-- Search
+opt.incsearch = true
+opt.hlsearch = false
+opt.ignorecase = true
+opt.smartcase = true
+
+-- Behaviuor
+opt.hidden = true
+opt.errorbells = false
+opt.swapfile = false
+opt.backup = false
+opt.backspace = "indent,eol,start"
+opt.splitright = true
+opt.splitbelow = true
+opt.autochdir = false
+opt.mouse = "a"
+opt.clipboard = "unnamedplus"
+opt.modifiable = true
+opt.encoding = "UTF-8"