Skip to content

Commit

Permalink
chore: fix lua lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioAntunes committed Jun 21, 2023
1 parent 84cbbf9 commit 6dd2efe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
25 changes: 21 additions & 4 deletions nvim/lua/fantunes/plugins/nvim-lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"] = "/*",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion tilde/.Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6dd2efe

Please sign in to comment.