summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-01-11 13:19:46 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-01-11 13:19:46 +0100
commit01437ba9839c120ac19f34fd8c62704c10b81796 (patch)
tree65b06a4ba85fd7744118eec178040ff9991b6e78
parent02cd73cf34dd50f75852257a1ae08eaed7985398 (diff)
checkpoint
-rw-r--r--after/ftplugin/markdown.lua8
-rw-r--r--after/plugin/autoclose.lua55
-rw-r--r--lua/config/lazy.lua1
-rw-r--r--lua/config/set.lua3
4 files changed, 6 insertions, 61 deletions
diff --git a/after/ftplugin/markdown.lua b/after/ftplugin/markdown.lua
index 6e5e39f..3c59d77 100644
--- a/after/ftplugin/markdown.lua
+++ b/after/ftplugin/markdown.lua
@@ -1,8 +1,8 @@
-- lower level in purple and red
-vim.api.nvim_set_hl(0, "MDdepthTwo", { fg = require("nord.colors").palette.aurora.purple })
-vim.fn.matchadd("MDdepthTwo", "^##")
-vim.api.nvim_set_hl(0, "MDdepthThree", { fg = require("nord.colors").palette.aurora.red })
-vim.fn.matchadd("MDdepthThree", "^###\\+")
+vim.api.nvim_set_hl(0, "MDdepthTwo", { fg = require("nord.colors").palette.aurora.orange })
+vim.api.nvim_set_hl(0, "MDdepthThree", { fg = require("nord.colors").palette.aurora.purple })
+vim.fn.matchadd("MDdepthTwo", "^##\\([^#].*\\|$\\)") -- Either '##' or '##[^#]*'
+vim.fn.matchadd("MDdepthThree", "^###\\([^#].*\\|$\\)")
-- definitions
vim.api.nvim_set_hl(0, "MDDefs", { fg = require("nord.colors").palette.frost.ice })
vim.fn.matchadd("MDDefs", "^[[:space:]]*\\([-*]\\|[0-9]\\+[.)]\\)[^:]\\+::")
diff --git a/after/plugin/autoclose.lua b/after/plugin/autoclose.lua
deleted file mode 100644
index b08d41c..0000000
--- a/after/plugin/autoclose.lua
+++ /dev/null
@@ -1,55 +0,0 @@
-local function in_comment()
- if
- require("cmp.config.context").in_treesitter_capture("comment") == true
- or require("cmp.config.context").in_syntax_group("Comment")
- then
- return true
- else
- return false
- end
-end
-
-local autoclose = require("autoclose")
-autoclose.setup({
- keys = {
- ["("] = { escape = false, close = true, pair = "()" },
- [")"] = { escape = true, close = false, pair = "()" },
- ["["] = { escape = false, close = true, pair = "[]" },
- ["]"] = { escape = true, close = false, pair = "[]" },
- ["{"] = { escape = false, close = true, pair = "{}" },
- ["}"] = { escape = true, close = false, pair = "{}" },
- [">"] = { escape = true, close = false, pair = "<>" },
- ['"'] = { escape = true, close = true, pair = '""' },
- ["'"] = {
- escape = true,
- close = true,
- pair = "''",
- disabled_filetypes = { "text", "telekasten", "groff", "diff", "gitcommit", "fugitive", "markdown" },
- disabled_when = in_comment,
- },
- ["`"] = {
- escape = true,
- close = true,
- pair = "``",
- enabled_filetypes = { "markdown", "go", "javascript" },
- },
- ["_"] = {
- escape = false,
- close = true,
- pair = "__",
- enabled_filetypes = { "markdown" },
- disabled_when = in_comment,
- },
- ["*"] = {
- escape = false,
- close = true,
- pair = "**",
- enabled_filetypes = { "markdown" },
- disabled_when = in_comment,
- },
- },
- options = {
- disable_when_touch = true,
- disable_command_mode = true,
- },
-})
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua
index 5aed367..d29aa3a 100644
--- a/lua/config/lazy.lua
+++ b/lua/config/lazy.lua
@@ -21,7 +21,6 @@ require("lazy").setup({
"tpope/vim-eunuch",
"mg979/vim-visual-multi",
"jghauser/follow-md-links.nvim",
- "m4xshen/autoclose.nvim",
"stevearc/conform.nvim",
"norcalli/nvim-colorizer.lua",
"neovim/nvim-lspconfig",
diff --git a/lua/config/set.lua b/lua/config/set.lua
index 1616592..4e4e045 100644
--- a/lua/config/set.lua
+++ b/lua/config/set.lua
@@ -30,6 +30,7 @@ opt.backup = true
opt.writebackup = true
opt.undodir = home .. "/.local/state/nvim"
-- https://stackoverflow.com/a/1625850
+-- TODO: Check if directory exists
opt.backupdir = home .. "/.local/share/Trash/nvim//,."
opt.directory = home .. "/.local/share/Trash/nvim//,."
@@ -86,7 +87,7 @@ opt.history = 200
opt.smartindent = true
opt.scrolloff = 8
-opt.spelllang = "en_us,nl"
+-- opt.spelllang = "en_us,nl"
opt.formatoptions = "tocqrnj"
-- Get the current working directory, replace the $HOME portion of the path with ~,