diff --git a/nvim/lua/fantunes/plugins/nvim-lsp/init.lua b/nvim/lua/fantunes/plugins/nvim-lsp/init.lua index 13d9a2b..057bb69 100644 --- a/nvim/lua/fantunes/plugins/nvim-lsp/init.lua +++ b/nvim/lua/fantunes/plugins/nvim-lsp/init.lua @@ -99,16 +99,33 @@ require("lspconfig").gopls.setup({ -- on_attach = on_attach, -- }, -- }) + lspconfig.lua_ls.setup({ settings = { Lua = { completion = { callSnippet = "Replace", }, + runtime = { + -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim) + version = "LuaJIT", + }, + diagnostics = { + -- Get the language server to recognize the `vim` global + globals = { "vim" }, + }, + workspace = { + -- Make the server aware of Neovim runtime files + library = vim.api.nvim_get_runtime_file("", true), + checkThirdParty = false, + }, + -- Do not send telemetry data containing a randomized but unique identifier + telemetry = { + enable = false, + }, }, }, }) - -- Terraform setup lspconfig.terraformls.setup({ capabilities = capabilities, @@ -125,9 +142,9 @@ lspconfig.yamlls.setup({ settings = { yaml = { schemas = { - ["http://json.schemastore.org/circleciconfig"] = ".circleci/**/*.{yml,yaml}", - ["https://json.schemastore.org/chart.json"] = "**/Chart.yaml", - ["https://raw.githubusercontent.com/Azure/vscode-kubernetes-tools/master/syntaxes/helm.tmLanguage.json"] = "/*", + ["http://json.schemastore.org/circleciconfig"] = ".circleci/**/*.{yml,yaml}", + ["https://json.schemastore.org/chart.json"] = "**/Chart.yaml", + ["https://raw.githubusercontent.com/Azure/vscode-kubernetes-tools/master/syntaxes/helm.tmLanguage.json"] = "/*", }, }, }, diff --git a/tilde/.Brewfile b/tilde/.Brewfile index 4837a87..07a7633 100644 --- a/tilde/.Brewfile +++ b/tilde/.Brewfile @@ -28,10 +28,10 @@ brew "git" brew "p11-kit" brew "unbound" brew "gnutls" -brew "guile" brew "gnupg" brew "gomplate" brew "grep" +brew "guile" brew "helm" brew "hopenpgp-tools" brew "htop"