Skip to content

Commit

Permalink
[neovim] Add Go to LSP config
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Apr 10, 2024
1 parent f5adc2e commit d99a4be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions home/neovim/plugins/conform/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ conform.setup({
lsp_fallback = true,
},
formatters_by_ft = {
go = { "gofmt" },
lua = { "stylua" },
python = { "black" },
},
Expand Down
3 changes: 2 additions & 1 deletion home/neovim/plugins/lspconfig/config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
-- https://github.com/neovim/nvim-lspconfig#suggested-configuration
local servers = {
bashls = {},
gopls = {},
jsonls = {},
lua_ls = {
settings = {
Lua = {
Expand Down Expand Up @@ -29,7 +31,6 @@ local servers = {
rust_analyzer = {},
terraformls = {},
tsserver = {},
jsonls = {},
yamlls = {
settings = {
yaml = {
Expand Down

0 comments on commit d99a4be

Please sign in to comment.