Fix some logging and profile settings
This commit is contained in:
parent
8a71bb62a3
commit
359c4538c5
@ -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 = {
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user