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", {})
@ -18,7 +18,7 @@ local opts = {
group = augroup,
buffer= bufnr,
callback = function()
vim.lsp.buf.format({bufnr=bufnr})
vim.lsp.buf.form({ bufnr = bufnr})
end,
})
end

View File

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

View File

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