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", {})
|
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.form({ bufnr = bufnr})
|
vim.lsp.buf.format({bufnr=bufnr})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,7 +3,7 @@ local M = {}
|
||||||
M.gopher = {
|
M.gopher = {
|
||||||
plugins = true,
|
plugins = true,
|
||||||
n = {
|
n = {
|
||||||
["<leader>gsj"] = {
|
["<leader>gtj"] = {
|
||||||
"<cmd> GoTagAdd json <CR>",
|
"<cmd> GoTagAdd json <CR>",
|
||||||
"Add json tag to struct"
|
"Add json tag to struct"
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,17 +25,15 @@ local plugins = {
|
||||||
|
|
||||||
-- Go plugins
|
-- Go plugins
|
||||||
{
|
{
|
||||||
"olexsmir/gopher.nvim",
|
"ray-x/go.nvim",
|
||||||
ft = "go",
|
config = function()
|
||||||
config = function (_, opts)
|
require("go").setup()
|
||||||
require("gopher").setup(opts)
|
|
||||||
require("core.utils").load_mappings("gopher")
|
require("core.utils").load_mappings("gopher")
|
||||||
end,
|
end,
|
||||||
build = function ()
|
event = {"CmdlineEnter"},
|
||||||
vim.cmd [[silent! GoInstallDeps]]
|
ft = {"go", 'gomod'},
|
||||||
end,
|
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Markdown plugins
|
-- Markdown plugins
|
||||||
{
|
{
|
||||||
'ixru/nvim-markdown',
|
'ixru/nvim-markdown',
|
||||||
|
|
Loading…
Reference in New Issue