From 643e658bdb35cce28a44878b9c54f57c516a28be Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Thu, 26 Dec 2024 19:35:57 +0100 Subject: [PATCH] Update LSP config for NeoVim --- nvim/.config/nvim/lua/configs/conform.lua | 1 + nvim/.config/nvim/lua/configs/lspconfig.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/configs/conform.lua b/nvim/.config/nvim/lua/configs/conform.lua index fb2281d..6c2247f 100644 --- a/nvim/.config/nvim/lua/configs/conform.lua +++ b/nvim/.config/nvim/lua/configs/conform.lua @@ -5,6 +5,7 @@ return { css = { "prettier" }, html = { "prettier" }, jsonc = { "prettier" }, + go = { "golines" }, }, -- format_on_save = { diff --git a/nvim/.config/nvim/lua/configs/lspconfig.lua b/nvim/.config/nvim/lua/configs/lspconfig.lua index a304036..5532bee 100644 --- a/nvim/.config/nvim/lua/configs/lspconfig.lua +++ b/nvim/.config/nvim/lua/configs/lspconfig.lua @@ -4,7 +4,7 @@ require("nvchad.configs.lspconfig").defaults() local lspconfig = require "lspconfig" -- EXAMPLE -local servers = { "html", "cssls", "pyright" } +local servers = { "html", "cssls", "pyright", "clangd", "gopls" } local nvlsp = require "nvchad.configs.lspconfig" -- lsps with default config