Fix some logging and profile settings
This commit is contained in:
parent
8a71bb62a3
commit
359c4538c5
@ -11,7 +11,6 @@ return {
|
|||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
|
|
||||||
{ "mason-org/mason.nvim", opts = {} },
|
{ "mason-org/mason.nvim", opts = {} },
|
||||||
"mason-org/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||||
@ -26,6 +25,7 @@ return {
|
|||||||
mode = mode or "n"
|
mode = mode or "n"
|
||||||
vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = "LSP: " .. desc })
|
vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = "LSP: " .. desc })
|
||||||
end
|
end
|
||||||
|
vim.lsp.set_log_level("WARN")
|
||||||
-- Rename the variable under your cursor.
|
-- Rename the variable under your cursor.
|
||||||
map("grn", vim.lsp.buf.rename, "[R]e[n]ame")
|
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
|
-- 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 capabilities = require("blink.cmp").get_lsp_capabilities()
|
||||||
local servers = {
|
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 = {
|
lua_ls = {
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
|||||||
@ -16,6 +16,10 @@ fi
|
|||||||
if [[ -a "/opt/homebrew/bin/brew" ]]; then
|
if [[ -a "/opt/homebrew/bin/brew" ]]; then
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
fi
|
fi
|
||||||
|
# asdf
|
||||||
|
if [[ -d "$HOME/.asdf/shims" ]]; then
|
||||||
|
export PATH="$HOME/.asdf/shims:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
mkdir -p "$ZSH_CACHE_DIR"
|
mkdir -p "$ZSH_CACHE_DIR"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user