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", {}) 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

View File

@ -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"
}, },

View File

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