Moving to individual plugin files for lazy
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
18
lua/taken/plugins/go.lua
Normal file
18
lua/taken/plugins/go.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"ray-x/go.nvim",
|
||||
dependencies = {
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
ft = { "go", "gomod" },
|
||||
build = function()
|
||||
require("go.install").update_all_sync()
|
||||
end,
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
local cfg = require("go.lsp").config()
|
||||
|
||||
lspconfig["gopls"].setup(cfg)
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user