diff options
| Commit | 2fe2121d7c9e43e580eebb8a193baf73ac8885b2 (patch) | |
|---|---|---|
| Author | 2024-03-11 14:23:14 +0200 | |
| Committer | 2024-03-11 14:23:14 +0200 | |
| Files | da9f0c7aea6bd3e8cfb564d9c3679e3561f7dedd /lua/text.lua | |
| anderson-2fe2121d7c9e43e580eebb8a193baf73ac8885b2.tar anderson-2fe2121d7c9e43e580eebb8a193baf73ac8885b2.tar.gz anderson-2fe2121d7c9e43e580eebb8a193baf73ac8885b2.zip | ||
| Parent | 1655b3a1bf7413eb567e3f33bc3ca25ba36cf179 (diff) | |
[text] Added text-oriented options
1 files changed, 27 insertions, 0 deletions
| -rw-r--r-- | lua/text.lua | 27 |
diff --git a/lua/text.lua b/lua/text.lua new file mode 100644 index 0000000..97cb85a --- /dev/null +++ b/lua/text.lua @@ -0,0 +1,27 @@ +--[=[ Search ]=]-- + +vim.o.hlsearch = false -- No highlighting when searching + +--[=[ Cursor ]=]-- + +vim.o.showmatch = true -- Jump to opening brace when having typed closing one +vim.o.cursorline = true +vim.api.nvim_create_autocmd({ "InsertLeave", "BufEnter" }, { + command = "set cul" +}) +vim.api.nvim_create_autocmd({ "InsertEnter", "BufLeave" }, { + command = "set nocul" +}) + +--[=[ Characters ]=]-- + +vim.o.list = true +vim.opt.listchars = { tab = "│ ", extends = ">", precedes = "<" } + +vim.o.tabstop = 4 +vim.o.shiftwidth = 4 + +--[=[ Windows ]=]-- + +vim.o.splitbelow = true +vim.o.splitright = true |
