summaryrefslogtreecommitdiff
path: root/lua/config/set.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-06 01:08:39 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-06 01:08:39 +0200
commit2dea91e91c1680cbd03a5e60239823f56b90513c (patch)
treecff916ff0eb400ccebf4b3fe9873c71d5d780dfb /lua/config/set.lua
parentdea978318e7a0244362706795ac777e7cd46c4da (diff)
checkpoint
Diffstat (limited to 'lua/config/set.lua')
-rw-r--r--lua/config/set.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/config/set.lua b/lua/config/set.lua
index 516e2c0..05e3803 100644
--- a/lua/config/set.lua
+++ b/lua/config/set.lua
@@ -90,7 +90,7 @@ opt.formatoptions = "tocqrnj"
-- Get the current working directory, replace the $HOME portion of the path with ~,
-- and extract the last three directories
-local cwd = vim.fn.getcwd():gsub(os.getenv("HOME"), "~")
+local cwd = vim.fn.getcwd():gsub(home, "~")
local last_dirs = string.match(cwd, "[^/]+/[^/]+/[^/]+/?$")
if last_dirs then
opt.titlestring = last_dirs .. " -> %t"
@@ -105,9 +105,10 @@ vim.cmd("match Todo /\\(TODO\\|FIXME\\):/")
-- -- Custom highlight for markdown definitions
if vim.filetype.match({ buf = 0 }) == "markdown" then
- vim.cmd("match mdDefs /^[[:space:]]*-[^:]\\+:/")
vim.cmd("hi mdDefs guifg=" .. require("nord.colors").palette.frost.ice)
+ vim.cmd("match mdDefs /^[[:space:]]*-[^:]\\+:/")
end
-vim.cmd("match matchURL /" .. "\\(https\\?\\|ftp\\|magnet\\):\\/\\/[[:alnum:]%\\/_#.-~:]*" .. "/")
+-- TODO: this is some text
+vim.cmd("syntax match matchURL /" .. "\\(https\\?\\|ftp\\|magnet\\):\\/\\/[[:alnum:]%\\/_#.-~:]*" .. "/")
vim.cmd("hi matchURL guifg=" .. require("nord.colors").palette.aurora.yellow)