Skip to content

Commit

Permalink
fix(mappings): create lazily
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Jun 25, 2024
1 parent 169b511 commit a24e0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neocomplete/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ neocomplete.core = nil
local function on_insert_enter()
neocomplete.core = require("neocomplete.core").new()
neocomplete.core:setup()
require("neocomplete.mappings").setup()
end

neocomplete.mappings = {
Expand All @@ -31,7 +32,6 @@ neocomplete.mappings = {

--- Sets up neocomplete
function neocomplete.setup()
require("neocomplete.mappings").setup()
require("neocomplete.config").setup()
require("neocomplete.highlights")

Expand Down

0 comments on commit a24e0f8

Please sign in to comment.