diff --git a/nvim/lua/config/lazy/40-lsp.lua b/nvim/lua/config/lazy/40-lsp.lua index a726413..e2738ff 100644 --- a/nvim/lua/config/lazy/40-lsp.lua +++ b/nvim/lua/config/lazy/40-lsp.lua @@ -11,7 +11,6 @@ return { { "neovim/nvim-lspconfig", dependencies = { - -- NOTE: `opts = {}` is the same as calling `require('mason').setup({})` { "mason-org/mason.nvim", opts = {} }, "mason-org/mason-lspconfig.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim", @@ -26,6 +25,7 @@ return { mode = mode or "n" vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = "LSP: " .. desc }) end + vim.lsp.set_log_level("WARN") -- Rename the variable under your cursor. map("grn", vim.lsp.buf.rename, "[R]e[n]ame") -- Execute a code action, usually your cursor needs to be on top of an error @@ -139,6 +139,15 @@ return { local capabilities = require("blink.cmp").get_lsp_capabilities() local servers = { + terraformls = { + filetypes = { "terraform", "terraform-vars", "hcl" }, + cmd = { + "terraform-ls", + "serve", + "-log-file", + vim.fs.dirname(require("vim.lsp.log").get_filename()) .. "/terraform-ls.log", + }, + }, lua_ls = { settings = { Lua = { diff --git a/zsh/zprofile b/zsh/zprofile index 05c25dd..f51aca5 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -16,6 +16,10 @@ fi if [[ -a "/opt/homebrew/bin/brew" ]]; then eval "$(/opt/homebrew/bin/brew shellenv)" fi +# asdf +if [[ -d "$HOME/.asdf/shims" ]]; then + export PATH="$HOME/.asdf/shims:$PATH" +fi # plugins mkdir -p "$ZSH_CACHE_DIR"