gopls and gotools: get from pkgs-unstable
This commit is contained in:
parent
8cd35a28bd
commit
bd53176626
@ -158,7 +158,8 @@ in {
|
|||||||
builtins.readFile
|
builtins.readFile
|
||||||
(pkgs.substituteAll {
|
(pkgs.substituteAll {
|
||||||
src = ./dev.lua;
|
src = ./dev.lua;
|
||||||
inherit (pkgs) gotools ripgrep;
|
inherit (pkgs) ripgrep;
|
||||||
|
inherit (pkgs.pkgs-unstable) gopls gotools;
|
||||||
})
|
})
|
||||||
.outPath;
|
.outPath;
|
||||||
})
|
})
|
||||||
|
@ -1,21 +1,16 @@
|
|||||||
vim.api.nvim_exec([[
|
vim.api.nvim_exec([[
|
||||||
set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m
|
set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m
|
||||||
au FileType go let g:go_fmt_command = "@gotools@/bin/goimports"
|
"au FileType go let g:go_fmt_command = "@gotools@/bin/goimports"
|
||||||
]], false)
|
]], false)
|
||||||
|
|
||||||
|
|
||||||
-- trying https://github.com/neovim/nvim-lspconfig/issues/888
|
-- trying https://github.com/neovim/nvim-lspconfig/issues/888
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
lspconfig.gopls.setup({
|
lspconfig.gopls.setup({
|
||||||
|
cmd = {"@gopls@/bin/gopls"},
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
--env = {GOFLAGS="-tags=cluster_integration"}
|
buildFlags = {"-tags=integration"},
|
||||||
--buildFlags = {"-tags=big integration cluster_integration"},
|
|
||||||
analyses = {
|
|
||||||
unusedparams = true,
|
|
||||||
},
|
|
||||||
staticcheck = true,
|
|
||||||
gofumpt = true,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user