blob: 52281438ba25bec1b98112f25aa001104baf10d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
local a = require'plenary.async'
:with
local context_manager = require "plenary.context_manager"
local with = context_manager.with
local open = context_manager.open
local err, stat = a.fs_stat("./.project");
assert(not error, ".project file does not exist, you should run this script at project root.")
-- open nvim tree
local nvim_tree_api = require("nvim-tree.api")
nvim_tree_api.open()
-- open terminal
vim.cmd("split")
vim.cmd
|