Summary Files Commits Branches @commit @diff @stats
path: root / nvim / .nvim / lua / text.lua
diff options
context:
space:
mode:
1 files changed, 27 insertions, 0 deletions
-rw-r--r--nvim/.nvim/lua/text.lua27
diff --git a/nvim/.nvim/lua/text.lua b/nvim/.nvim/lua/text.lua
new file mode 100644
index 0000000..898bfa3
--- /dev/null
+++ b/nvim/.nvim/lua/text.lua
@@ -0,0 +1,27 @@
+vim.cmd.highlight({ "Pmenu", "ctermfg=223", "ctermbg=238" })
+
+vim.api.nvim_create_user_command(
+ "FIND",
+ "vim /\\v(<args>)/ % | set nowrap | copen",
+ { nargs = 1 }
+)
+
+--[=[ Treesitter ]=]--
+
+vim.cmd.highlight({ "link", "@variable", "GruvboxFg1" })
+vim.cmd.highlight({ "link", "@operator", "GruvboxOrange" })
+
+--[=[ Characters ]=]--
+
+vim.o.list = true
+vim.opt.listchars = { tab = "│ ", extends = ">", precedes = "<" }
+
+vim.o.tabstop = 4 -- Show tab as 4 spaces
+vim.o.shiftwidth = 4 -- Indent with 4 spaces
+
+--[=[ Folding ]=]--
+vim.o.foldlevel = 99
+vim.cmd.highlight({ "Folded", "ctermfg=NONE" })
+
+--[=[ ToHTML ]=]--
+vim.g.html_dynamic_folds = true