MAJOR: Project rename and preparation for v1.0.0
I hope I haven't missed any for the renames!
This commit is contained in:
14
lua/outline/code_action.lua
Normal file
14
lua/outline/code_action.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local main = require 'outline'
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.show_code_actions()
|
||||
-- keep the cursor info in outline and jump back (or not jump back?)
|
||||
local winnr, pos = vim.api.nvim_get_current_win(), vim.api.nvim_win_get_cursor(0)
|
||||
main._goto_location(true)
|
||||
vim.lsp.buf.code_action()
|
||||
vim.fn.win_gotoid(winnr)
|
||||
vim.api.nvim_win_set_cursor(winnr, pos)
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user