diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2023-10-22 12:13:07 +0200 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2023-11-03 21:01:49 +0100 |
commit | 7070190fa9cd058159034dc700d48f316200f424 (patch) | |
tree | c8908cbdf2ed3c96e5650fd988ad5820282fc224 | |
parent | bc8966a42cd890c12c50935852d0bcf2cb002932 (diff) |
Added lua/options.lua
-rw-r--r-- | init.lua | 42 | ||||
-rw-r--r-- | lua/options.lua | 42 |
2 files changed, 44 insertions, 40 deletions
@@ -50,46 +50,8 @@ require('lazy-bootstrap') -- Setup lazy plugin manager - configure plugins require('lazy-plugins') --- [[ Setting options ]] --- See `:help vim.o` --- NOTE: You can change these options as you wish! - --- Set highlight on search -vim.o.hlsearch = false - --- Make line numbers default -vim.wo.number = true - --- Enable mouse mode -vim.o.mouse = 'a' - --- Sync clipboard between OS and Neovim. --- Remove this option if you want your OS clipboard to remain independent. --- See `:help 'clipboard'` -vim.o.clipboard = 'unnamedplus' - --- Enable break indent -vim.o.breakindent = true - --- Save undo history -vim.o.undofile = true - --- Case-insensitive searching UNLESS \C or capital in search -vim.o.ignorecase = true -vim.o.smartcase = true - --- Keep signcolumn on by default -vim.wo.signcolumn = 'yes' - --- Decrease update time -vim.o.updatetime = 250 -vim.o.timeoutlen = 300 - --- Set completeopt to have a better completion experience -vim.o.completeopt = 'menuone,noselect' - --- NOTE: You should make sure your terminal supports this -vim.o.termguicolors = true +-- Set options +require('options') -- [[ Basic Keymaps ]] diff --git a/lua/options.lua b/lua/options.lua new file mode 100644 index 0000000..a636e35 --- /dev/null +++ b/lua/options.lua @@ -0,0 +1,42 @@ +-- [[ Setting options ]] +-- See `:help vim.o` +-- NOTE: You can change these options as you wish! + +-- Set highlight on search +vim.o.hlsearch = false + +-- Make line numbers default +vim.wo.number = true + +-- Enable mouse mode +vim.o.mouse = 'a' + +-- Sync clipboard between OS and Neovim. +-- Remove this option if you want your OS clipboard to remain independent. +-- See `:help 'clipboard'` +vim.o.clipboard = 'unnamedplus' + +-- Enable break indent +vim.o.breakindent = true + +-- Save undo history +vim.o.undofile = true + +-- Case-insensitive searching UNLESS \C or capital in search +vim.o.ignorecase = true +vim.o.smartcase = true + +-- Keep signcolumn on by default +vim.wo.signcolumn = 'yes' + +-- Decrease update time +vim.o.updatetime = 250 +vim.o.timeoutlen = 300 + +-- Set completeopt to have a better completion experience +vim.o.completeopt = 'menuone,noselect' + +-- NOTE: You should make sure your terminal supports this +vim.o.termguicolors = true + +-- vim: ts=2 sts=2 sw=2 et |