Skip to content

Commit

Permalink
fix: use init for vim plugins (#1222)
Browse files Browse the repository at this point in the history
Signed-off-by: ayamir <[email protected]>
  • Loading branch information
ayamir authored and CharlesChiuGit committed Apr 22, 2024
1 parent e5224c4 commit 7e6ae27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lua/modules/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ editor["romainl/vim-cool"] = {
editor["lambdalisue/suda.vim"] = {
lazy = true,
cmd = { "SudaRead", "SudaWrite" },
config = require("editor.suda"),
init = require("editor.suda"),
}
editor["tpope/vim-sleuth"] = {
lazy = true,
Expand Down
12 changes: 4 additions & 8 deletions lua/modules/plugins/lang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ lang["kevinhwang91/nvim-bqf"] = {
}
lang["ray-x/go.nvim"] = {
lazy = true,
dependencies = { -- optional packages
"ray-x/guihua.lua",
"neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter",
},
ft = { "go", "gomod" },
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
config = require("lang.go-nvim"),
ft = { "go", "gomod", "gosum" },
build = ":GoInstallBinaries",
config = require("lang.go"),
dependencies = { "ray-x/guihua.lua" },
}
lang["mrcjkb/rustaceanvim"] = {
lazy = true,
Expand Down

0 comments on commit 7e6ae27

Please sign in to comment.