Fix some logging and profile settings

This commit is contained in:
Ben Kreeger 2025-08-14 00:01:38 -05:00
parent 8a71bb62a3
commit 359c4538c5
Signed by: kreeger
GPG Key ID: D5CF8683D4BE4B50
2 changed files with 14 additions and 1 deletions

View File

@ -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 = {

View File

@ -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"