.config/nvim/lua/plugins/lsp.lua

changeset 1064
fcfa295076a8
parent 1059
dc0095e5bbc8
child 1068
537a428597b5
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -1,7 +1,7 @@
 return {
   "neovim/nvim-lspconfig",
-  {"williamboman/mason.nvim", config = true},
-  {"j-hui/fidget.nvim", config = true},
+  { "williamboman/mason.nvim", config = true },
+  { "j-hui/fidget.nvim", config = true },
 
   {
     "williamboman/mason-lspconfig.nvim",
@@ -10,19 +10,19 @@ return {
       require("mason-lspconfig").setup_handlers({
         function(server)
           require("lspconfig")[server].setup({
-            capabilities = require('cmp_nvim_lsp').default_capabilities()
+            capabilities = require("cmp_nvim_lsp").default_capabilities(),
           })
         end,
-        gopls = function ()
+        gopls = function()
           require("lspconfig").gopls.setup({
-            capabilities = require('cmp_nvim_lsp').default_capabilities(),
-            settings = { gopls = { gofumpt = true } }
+            capabilities = require("cmp_nvim_lsp").default_capabilities(),
+            settings = { gopls = { gofumpt = true } },
           })
         end,
-        solargraph = function ()
+        solargraph = function()
           require("lspconfig").solargraph.setup({
-            capabilities = require('cmp_nvim_lsp').default_capabilities(),
-            init_options = { formatting = false }
+            capabilities = require("cmp_nvim_lsp").default_capabilities(),
+            init_options = { formatting = false },
           })
         end,
       })

mercurial