2023-10-09 15:42:05 +03:00
|
|
|
vim.api.nvim_exec([[
|
2024-02-02 14:07:01 +02:00
|
|
|
set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m
|
2024-04-15 14:15:34 +03:00
|
|
|
"au FileType go let g:go_fmt_command = "@gotools@/bin/goimports"
|
2023-10-09 15:42:05 +03:00
|
|
|
]], false)
|
2024-04-15 11:01:55 +03:00
|
|
|
|
|
|
|
|
|
|
|
-- trying https://github.com/neovim/nvim-lspconfig/issues/888
|
|
|
|
local lspconfig = require("lspconfig")
|
|
|
|
lspconfig.gopls.setup({
|
2024-04-15 14:15:34 +03:00
|
|
|
cmd = {"@gopls@/bin/gopls"},
|
2024-04-15 11:01:55 +03:00
|
|
|
settings = {
|
|
|
|
gopls = {
|
2024-04-15 14:15:34 +03:00
|
|
|
buildFlags = {"-tags=integration"},
|
2024-04-15 11:01:55 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|