Skip to content

Commit

Permalink
fix(enter_hint): dont load while running nvim .
Browse files Browse the repository at this point in the history
  • Loading branch information
XXiaoA committed May 2, 2024
1 parent f3be73f commit 6b45906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/autocmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ end
-- automatically hint after entering nvim and opening a new file
-- TODO: add support for changing fish shell history
local function enter_hint()
if vim.bo.ft == "oil" then
return
end

local cur_file = vim.fn.expand("<afile>:t")
local cwd = vim.fn.getcwd()
local file_dir = vim.fn.expand("<afile>:p:h")
Expand Down

0 comments on commit 6b45906

Please sign in to comment.