Skip to content

Commit ebe4764

Browse files
committed
fix: wrongly making global variables
1 parent fd1f1bb commit ebe4764

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lua/python_import/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local config = require "python_import.config"
66
local pyright = require "python_import.pyright"
77
local notify = require("python_import.notify").notify
88

9-
M = {}
9+
local M = {}
1010

1111
---@param winnr integer
1212
---@param word string

lua/python_import/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
M = {}
1+
local M = {}
22

33
M.opts = {}
44
M.default_opts = {

lua/python_import/lookup_table.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
M = {}
1+
local M = {}
22

33
-- If nothing is found, it will return `import ..` anyway.
44
-- However, it might take some time to search the candidate,

lua/python_import/notify.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
M = {}
1+
local M = {}
22

33
local status2, vscode = pcall(require, "vscode")
44
if status2 and vscode.notify ~= nil then

lua/python_import/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local notify = require("python_import.notify").notify
22

3-
M = {}
3+
local M = {}
44

55
---Return line after the first comments and docstring.
66
---It iterates e.g. 50 first lines and obtains treesitter nodes to check the syntax (string or comment)

0 commit comments

Comments
 (0)