cambio de módulo para golang

This commit is contained in:
serxoz 2022-07-28 14:35:01 +02:00
parent 84981ec017
commit 36dedc36ce
5 changed files with 9 additions and 10 deletions

5
nvim/after/plugin/go.lua Normal file
View File

@ -0,0 +1,5 @@
require('go').setup()
-- Run gofmt + goimport on save
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').gofmt() ]], false)
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], false)

View File

@ -0,0 +1 @@
vim.cmd(":TSInstall all");

View File

@ -1,5 +1,4 @@
return {
-- ['nvim-lua/plenary.nvim'] = {},
['ThePrimeagen/harpoon'] = {
module = "harpoon",
ft = "harpoon",
@ -7,9 +6,6 @@ return {
require "custom.plugins.harpoon"
end,
},
['fatih/vim-go'] = {
config = function()
require "custom.plugins.vim-go"
end,
},
['ray-x/go.nvim'] = {},
['ray-x/guihua.lua'] = {},
}

View File

@ -1,4 +0,0 @@
local M = {
go_gopls_enabled = 0,
}
return M

View File

@ -5,4 +5,5 @@ rm -rf ~/.local/share/nvim
rm -rf ~/.cache/nvim
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 ; nvim
ln -s $HOME/dotfiles/nvim/custom $HOME/.config/nvim/lua/custom
ln -s $HOME/dotfiles/nvim/after $HOME/.config/nvim/after