Compare commits

..

No commits in common. "f69bd5adc6b48ae35160d102086cbc62c9f0f3d1" and "bb2816652c7a16fcb80d5965c2be08dab1f981b5" have entirely different histories.

4 changed files with 11 additions and 11 deletions

View File

@ -22,5 +22,3 @@ lspconfig.gopls.setup{
} }
} }
} }
return lspconfig

View File

@ -1,4 +1,4 @@
local none_ls = require("null-ls") local none_ls = require("none-ls")
local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
@ -18,7 +18,7 @@ local opts = {
group = augroup, group = augroup,
buffer= bufnr, buffer= bufnr,
callback = function() callback = function()
vim.lsp.buf.format({bufnr=bufnr}) vim.lsp.buf.form({ bufnr = bufnr})
end, end,
}) })
end end

View File

@ -3,7 +3,7 @@ local M = {}
M.gopher = { M.gopher = {
plugins = true, plugins = true,
n = { n = {
["<leader>gtj"] = { ["<leader>gsj"] = {
"<cmd> GoTagAdd json <CR>", "<cmd> GoTagAdd json <CR>",
"Add json tag to struct" "Add json tag to struct"
}, },

View File

@ -25,15 +25,17 @@ local plugins = {
-- Go plugins -- Go plugins
{ {
"ray-x/go.nvim", "olexsmir/gopher.nvim",
config = function() ft = "go",
require("go").setup() config = function (_, opts)
require("gopher").setup(opts)
require("core.utils").load_mappings("gopher") require("core.utils").load_mappings("gopher")
end, end,
event = {"CmdlineEnter"}, build = function ()
ft = {"go", 'gomod'}, vim.cmd [[silent! GoInstallDeps]]
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries end,
}, },
-- Markdown plugins -- Markdown plugins
{ {
'ixru/nvim-markdown', 'ixru/nvim-markdown',