Closed SongTianxian9 closed 2 years ago
Have a look at the lua API :h api
看看 lua API
:h api
thank you for your reply and your work, i have not find much more useful information for there(just you can use nvim_buf_get_name() to get current buffer name), now i use vim.fn.expand("%:p:r")
and similar things. thanks again!!
I am glad that it worked out for you. Nothing is better than reading vim help :)
I want known how can i get something done like
:FloatermNew --autoclose=0 gcc % -o %< && ./%:h
, i know there'srequire("FTerm").run
but i don't know , how can i get current buffer name , current buffer name without extension , current line number or something else . anyone knows if there a help manual?