From 3e6c7e82813049dc47fe5dae7295c2106fbb398f Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Sun, 19 Dec 2021 13:12:11 -0500 Subject: [PATCH] Added swift language server --- nvim/.config/nvim/lua/config/lsp.lua | 4 +++- zsh/.config/zsh/zsh-exports | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/config/lsp.lua b/nvim/.config/nvim/lua/config/lsp.lua index 423c13e..1f23ad0 100644 --- a/nvim/.config/nvim/lua/config/lsp.lua +++ b/nvim/.config/nvim/lua/config/lsp.lua @@ -50,7 +50,7 @@ capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities) local servers = { "gopls", "bashls", "jedi_language_server", "dockerls", "terraformls", - "tsserver", "texlab", "yamlls", "jsonls" + "tsserver", "texlab", "yamlls", "jsonls", "clangd", "sourcekit" } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { @@ -176,6 +176,8 @@ require"lspconfig".sumneko_lua.setup { } } } + + -- alternative to formatter but yamlfix is not working and I need this for respecting yamllint config -- but yamlfix is messing up ansible files ... 😠 -- require('lspconfig')['efm'].setup{ diff --git a/zsh/.config/zsh/zsh-exports b/zsh/.config/zsh/zsh-exports index 52bf716..ca8a9e2 100644 --- a/zsh/.config/zsh/zsh-exports +++ b/zsh/.config/zsh/zsh-exports @@ -9,6 +9,9 @@ export SHELL="$(which zsh)" # Allow useful scripts in ~/.bin to be in the search path. export PATH=~/.bin:$PATH +# Allow git to work on mounted volumes +export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 + # Add homebrew to the path if [ -d /opt/homebrew ]; then export PATH=/opt/homebrew/bin:$PATH