Compare commits

...

2 Commits

Author SHA1 Message Date
Atao f69bd5adc6 Fix merge 2024-01-12 19:20:34 +01:00
Atao 095ad31813 Nvim + tmux wrong color fixes 2024-01-12 19:15:02 +01:00
4 changed files with 11 additions and 11 deletions

View File

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

View File

@ -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

View File

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

View File

@ -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',