Nvim + tmux wrong color fixes

main
Atao 2024-01-12 19:15:02 +01:00
parent 17715e6d61
commit 095ad31813
4 changed files with 20 additions and 5 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

@ -22,6 +22,18 @@ local plugins = {
return require "custom.configs.none-ls"
end,
},
{
"ray-x/go.nvim",
config = function()
require("go").setup()
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
},
--[[
{
"olexsmir/gopher.nvim",
ft = "go",
@ -31,7 +43,8 @@ local plugins = {
end,
build = function ()
vim.cmd [[silent! GoInstallDeps]]
end,
},
--end,
--},
--]]--
}
return plugins