config/shared/home/dev.lua

17 lines
413 B
Lua
Raw Normal View History

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
"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({
cmd = {"@gopls@/bin/gopls"},
2024-04-15 11:01:55 +03:00
settings = {
gopls = {
buildFlags = {"-tags=integration"},
2024-04-15 11:01:55 +03:00
},
},
})