diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-03-25 00:57:35 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-03-31 01:20:34 +0100 |
commit | ac684d83075cd55369a5e32d674be0919e3b1250 (patch) | |
tree | ce41da532181930fb8c5c2332899f0c20ed47b2e /dotfiles | |
parent | Dotfiles: Nvim: Use neovim nightly's (0.10) inlay hints (diff) | |
download | nixos-config-ac684d83075cd55369a5e32d674be0919e3b1250.tar.gz nixos-config-ac684d83075cd55369a5e32d674be0919e3b1250.tar.bz2 nixos-config-ac684d83075cd55369a5e32d674be0919e3b1250.zip |
Dotfiles: Nvim: Add golang config
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/nvim/init.lua | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua index 71f62db..dbef092 100644 --- a/dotfiles/nvim/init.lua +++ b/dotfiles/nvim/init.lua @@ -558,7 +558,20 @@ require('lazy').setup({ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - -- gopls = {}, + gopls = { + settings = { + gopls = { + ["ui.inlayhint.hints"] = { + compositeLiteralFields = true, + constantValues = true, + }, + ["ui.codelenses"] = { + test = true, + generate = true, + }, + }, + }, + }, -- pyright = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs @@ -639,6 +652,7 @@ require('lazy').setup({ -- You can use a sub-list to tell conform to run *until* a formatter -- is found. -- javascript = { { "prettierd", "prettier" } }, + go = { "goimports", "gofmt" }, }, }, }, |