We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 582fa5d commit edeb458Copy full SHA for edeb458
plugin/devto-nvim.lua
@@ -1,7 +1,3 @@
1
-local M = {}
2
-local devto = require("devto-nvim")
3
-local notify = require("devto-nvim.notify")
4
-
5
local commands = {
6
feed = "feed",
7
my_articles = "my_articles",
@@ -12,6 +8,9 @@ local commands = {
12
8
vim.api.nvim_create_user_command(
13
9
"Devto",
14
10
function(data)
11
+ local devto = require("devto-nvim")
+ local notify = require("devto-nvim.notify")
+
15
local args = data.args
16
17
if args == commands.feed then
@@ -31,4 +30,3 @@ vim.api.nvim_create_user_command(
31
30
complete = function() return vim.tbl_values(commands) end
32
}
33
)
34
-return M
0 commit comments