nvim/lua/lsp/go.lua

20 lines
345 B
Lua
Raw Normal View History

2024-01-06 18:44:41 +08:00
return {
settings = {
gopls = {
ui = {
completion = {
usePlaceholders = true,
},
},
},
2024-01-06 19:05:22 +08:00
},
on_attach = function()
G.api.nvim_create_user_command('R', function()
G.cmd [[set splitbelow]]
G.cmd [[sp]]
G.cmd [[term go run %]]
G.cmd [[startinsert]]
end, {})
end
2024-01-06 18:44:41 +08:00
}