--- 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, })