Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(misc): a couple of updates to documentation and some cleaning #37

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions doc/pymple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,6 @@ M:validate_configuration() *M:validate_configuration()*
================================================================================
API *pymple.api*

Pymple's API module exposes some of the main functions used by the plugin.

At the moment, the following functions are exposed:
- `add_import_for_symbol_under_cursor`: Resolves import for symbol under
cursor.
- `update_imports`: Update all imports in workspace after renaming `source` to
`destination`.

M.resolve_import_under_cursor() *M.resolve_import_under_cursor()*
Resolves import for symbol under cursor. This will automatically find and
add the corresponding import to the top of the file (below any existing
Expand Down
7 changes: 0 additions & 7 deletions lua/pymple/api.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
---@tag pymple.api
---@brief [[
--- Pymple's API module exposes some of the main functions used by the plugin.
---
--- At the moment, the following functions are exposed:
--- - `add_import_for_symbol_under_cursor`: Resolves import for symbol under cursor.
--- - `update_imports`: Update all imports in workspace after renaming `source` to `destination`.
---@brief ]]

local resolve_imports = require("pymple.resolve_imports")
local utils = require("pymple.utils")
Expand Down
18 changes: 0 additions & 18 deletions lua/pymple/hooks.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-- TODO: integrate with other file tree plugins (oil, etc.)
local log = require("pymple.log")
local api = require("pymple.api")
local config = require("pymple.config")
Expand Down Expand Up @@ -32,23 +31,6 @@ local setup_nvimtree_hooks = function(nvimtree_api, opts)
end)
end

--[[
OilActionsPost {
buf = 14,
data = {
actions = { {
dest_url = "oil:///Users/alex/code/python/data-doctrine/scripts/QAC_dataset/toto.py",
entry_type = "file",
src_url = "oil:///Users/alex/code/python/data-doctrine/scripts/QAC_dataset/utils.py",
type = "move"
} }
},
event = "User",
file = "OilActionsPost",
id = 99,
match = "OilActionsPost"
}
--]]
local setup_oil_hooks = function(opts)
vim.api.nvim_create_autocmd("User", {
pattern = "OilActionsPost",
Expand Down