Skip to content

Commit

Permalink
fix: Lf.nvim lazy config
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Feb 2, 2024
1 parent 4e52a9a commit a2619b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/core/plugins/lf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ return {
dependencies = "akinsho/nvim-toggleterm.lua",
opts = {
border = "rounded",
},
config = function(_, opts)
-- does not work when lazy loaded
vim.g.lf_netrw = 1
-- TODO: my mapping <leader>lf is soo good but in the LSP cluster
config.key_mappings(),
config.key_mappings()
vim.api.nvim_create_autocmd("User", {
pattern = "LfTermEnter",
callback = function(a)
vim.api.nvim_buf_set_keymap(a.buf, "t", "q", "q", { nowait = true })
end,
}),
},
config = function(opts)
-- does not work when lazy loaded
vim.g.lf_netrw = 1
})
require("lf").setup(opts)
end,
}

0 comments on commit a2619b1

Please sign in to comment.