aboutsummaryrefslogtreecommitdiff
path: root/lua/simple-denote/api.lua
diff options
context:
space:
mode:
authorhistoria <gravel.justness270@slmail.me>2024-08-14 16:11:38 -0400
committerhistoria <gravel.justness270@slmail.me>2024-08-14 16:11:38 -0400
commit98607a8a8c206e4ab2d4d47fb60f2d439a9d37d4 (patch)
treebbc9dda11e267ef20e82e425c9f599ea6da93716 /lua/simple-denote/api.lua
parent64b58e667d0d255439b055227f1f11012fcc9006 (diff)
downloadsimple-denote.nvim-98607a8a8c206e4ab2d4d47fb60f2d439a9d37d4.tar.gz
fix: renaming commands respect original extension
Diffstat (limited to 'lua/simple-denote/api.lua')
-rw-r--r--lua/simple-denote/api.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/simple-denote/api.lua b/lua/simple-denote/api.lua
index a03c9f2..ded8022 100644
--- a/lua/simple-denote/api.lua
+++ b/lua/simple-denote/api.lua
@@ -36,10 +36,9 @@ function M.title(options, filename, title)
internal.title(options, filename, title)
end
----@param options table
---@param filename string|nil
---@param keywords string|nil
-function M.keywords(options, filename, keywords)
+function M.keywords(filename, keywords)
if not filename then
filename = vim.fn.expand("%")
end
@@ -49,7 +48,7 @@ function M.keywords(options, filename, keywords)
end)
end
if not keywords then return end
- internal.keyword(options, filename, keywords)
+ internal.keyword(filename, keywords)
end
---@param filename string|nil