aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-05 11:18:10 +0200
committerpml68 <contact@pml68.dev>2025-04-05 11:18:10 +0200
commitb119bed9994cad430baded434de26ce1c2cb6e47 (patch)
tree617e2cad9246c9451509dd6aa6a56ad1d8d12194
parentrefactor: enhance some remaps [skip ci] (diff)
downloadnvim-b119bed9994cad430baded434de26ce1c2cb6e47.tar.gz
refactor: just some generic stuff
-rw-r--r--ftplugin/markdown.lua4
-rw-r--r--lua/pml68/plugins/treesitter.lua1
-rw-r--r--lua/pml68/remap.lua2
3 files changed, 4 insertions, 3 deletions
diff --git a/ftplugin/markdown.lua b/ftplugin/markdown.lua
index de55be5..c3e2be1 100644
--- a/ftplugin/markdown.lua
+++ b/ftplugin/markdown.lua
@@ -1,2 +1,2 @@
-vim.o.spelllang = 'en_us'
-vim.o.spell = true
+vim.opt_local.spelllang = 'en_us'
+vim.opt_local.spell = true
diff --git a/lua/pml68/plugins/treesitter.lua b/lua/pml68/plugins/treesitter.lua
index 805246d..8454cb1 100644
--- a/lua/pml68/plugins/treesitter.lua
+++ b/lua/pml68/plugins/treesitter.lua
@@ -30,6 +30,7 @@ return {
"gitignore",
"gitattributes",
"gitcommit",
+ "git_config",
"go",
"gosum",
"gomod",
diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua
index cc732c8..7f110ff 100644
--- a/lua/pml68/remap.lua
+++ b/lua/pml68/remap.lua
@@ -88,7 +88,7 @@ vim.keymap.set('n', '<leader>ft', function()
search_dirs = todo_files
})
else
- print("No 'TODO' strings or TODO.{txt,md} files found")
+ vim.api.nvim_echo({ { "Failed to find any to-dos", "WarningMsg" } }, true, {})
end
else
telescope.grep_string({ search = "TODO" })