From 8e46610a7bb1a6d66b62d35b38a4683980ddb60b Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 7 Nov 2023 08:15:20 -0500 Subject: [PATCH] updated nvim autocmd --- nvim/m-housh/lua/user/autocmd.lua | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/nvim/m-housh/lua/user/autocmd.lua b/nvim/m-housh/lua/user/autocmd.lua index eaec0e5..e78bae9 100644 --- a/nvim/m-housh/lua/user/autocmd.lua +++ b/nvim/m-housh/lua/user/autocmd.lua @@ -60,22 +60,22 @@ createCmd( ) -- Swift -createCmd( - "FileType", - { - pattern = { 'swift' }, - callback = function() - local root_dir = vim.fs.dirname(vim.fs.find({ - "Package.swift", - ".git", - }, { upward = true })[1]) - local client = vim.lsp.start({ - name = "sourcekit-lsp", - cmd = { "sourcekit-lsp" }, - root_dir = root_dir - }) - vim.lsp.buf_attach_client(0, client) - end, - group = swiftGroup - } -) +-- createCmd( +-- "FileType", +-- { +-- pattern = { 'swift' }, +-- callback = function() +-- local root_dir = vim.fs.dirname(vim.fs.find({ +-- "Package.swift", +-- ".git", +-- }, { upward = true })[1]) +-- local client = vim.lsp.start({ +-- name = "sourcekit-lsp", +-- cmd = { "sourcekit-lsp" }, +-- root_dir = root_dir +-- }) +-- vim.lsp.buf_attach_client(0, client) +-- end, +-- group = swiftGroup +-- } +-- )