cambio de módulo para golang
This commit is contained in:
parent
84981ec017
commit
36dedc36ce
5
nvim/after/plugin/go.lua
Normal file
5
nvim/after/plugin/go.lua
Normal 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)
|
||||
|
1
nvim/after/plugin/init.lua
Normal file
1
nvim/after/plugin/init.lua
Normal file
@ -0,0 +1 @@
|
||||
vim.cmd(":TSInstall all");
|
@ -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'] = {},
|
||||
}
|
||||
|
@ -1,4 +0,0 @@
|
||||
local M = {
|
||||
go_gopls_enabled = 0,
|
||||
}
|
||||
return M
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user