]> git.localhorst.tv Git - nvim-config.git/commitdiff
feat(lsp): added example for custom lsp server setup
authorFolke Lemaitre <folke.lemaitre@gmail.com>
Sat, 7 Jan 2023 10:16:22 +0000 (11:16 +0100)
committerFolke Lemaitre <folke.lemaitre@gmail.com>
Sat, 7 Jan 2023 10:16:22 +0000 (11:16 +0100)
lua/plugins/lsp.lua

index bb431b2c81b4eb18e5d364ff055bde9c12755e66..6a7506b6e284eba9a6bc81e893bc9b2410182e1c 100644 (file)
@@ -3,6 +3,13 @@ return {
   -- uncomment and add lsp servers with their config to servers below
   {
     "neovim/nvim-lspconfig",
+    -- you can do any additional lsp server setup here
+    -- return true if you don't want this server to be setup with lspconfig
+    ---@param server string lsp server name
+    ---@param opts _.lspconfig.options any options set for the server
+    -- setup_server = function(server, opts)
+    --   return false
+    -- end,
     ---@type lspconfig.options
     -- servers = {
     --   jsonls = {},