Compare commits
2 Commits
bb2816652c
...
f69bd5adc6
Author | SHA1 | Date |
---|---|---|
Atao | f69bd5adc6 | |
Atao | 095ad31813 |
|
@ -22,3 +22,5 @@ lspconfig.gopls.setup{
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return lspconfig
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local none_ls = require("none-ls")
|
||||
local none_ls = require("null-ls")
|
||||
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@ local opts = {
|
|||
group = augroup,
|
||||
buffer= bufnr,
|
||||
callback = function()
|
||||
vim.lsp.buf.form({ bufnr = bufnr})
|
||||
vim.lsp.buf.format({bufnr=bufnr})
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@ local M = {}
|
|||
M.gopher = {
|
||||
plugins = true,
|
||||
n = {
|
||||
["<leader>gsj"] = {
|
||||
["<leader>gtj"] = {
|
||||
"<cmd> GoTagAdd json <CR>",
|
||||
"Add json tag to struct"
|
||||
},
|
||||
|
|
|
@ -25,17 +25,15 @@ local plugins = {
|
|||
|
||||
-- Go plugins
|
||||
{
|
||||
"olexsmir/gopher.nvim",
|
||||
ft = "go",
|
||||
config = function (_, opts)
|
||||
require("gopher").setup(opts)
|
||||
"ray-x/go.nvim",
|
||||
config = function()
|
||||
require("go").setup()
|
||||
require("core.utils").load_mappings("gopher")
|
||||
end,
|
||||
build = function ()
|
||||
vim.cmd [[silent! GoInstallDeps]]
|
||||
end,
|
||||
event = {"CmdlineEnter"},
|
||||
ft = {"go", 'gomod'},
|
||||
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||
},
|
||||
|
||||
-- Markdown plugins
|
||||
{
|
||||
'ixru/nvim-markdown',
|
||||
|
|
Loading…
Reference in New Issue