snailed
/
taolf
Archived
2
0
Fork 0

fix: update which buffer is mapped, set filetype to lf

This commit is contained in:
Lucas Burns 2022-05-29 17:04:30 -05:00
parent a6154bd87c
commit c9b9b30f37
No known key found for this signature in database
GPG Key ID: C011CBEF6628B679
1 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ function Lf:new(config)
self.id_tmpfile = nil
self.id = nil
self.curr_file = nil
self.bufnr = api.nvim_get_current_buf()
self.bufnr = 0
-- Needs to be grabbed here before the terminal buffer is created
self.signcolumn = o.signcolumn
@ -221,7 +221,8 @@ end
---On open closure to run in the `Terminal`
---@param term Terminal
function Lf:__on_open(term)
-- api.nvim_command("setlocal filetype=lf")
self.bufnr = api.nvim_get_current_buf()
api.nvim_buf_set_option(self.bufnr, "filetype", "lf")
if self.cfg.tmux then
utils.tmux(true)