From 67d5f6db8dc6cd9e7e751ed60fb67acf11956bb6 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 25 Aug 2022 10:10:44 +0200 Subject: [PATCH] python setup --- .config/nvim/lua/dln/lsp-config.lua | 1 + .zshrc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.config/nvim/lua/dln/lsp-config.lua b/.config/nvim/lua/dln/lsp-config.lua index 20ddcf3..f9b5a49 100644 --- a/.config/nvim/lua/dln/lsp-config.lua +++ b/.config/nvim/lua/dln/lsp-config.lua @@ -26,6 +26,7 @@ local servers = { "dockerls", "jsonls", -- "sql", + "pyright", "sumneko_lua", "terraformls", "yamlls", diff --git a/.zshrc b/.zshrc index f9da5fd..0294efc 100644 --- a/.zshrc +++ b/.zshrc @@ -150,6 +150,12 @@ export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git' ## direnv eval "$(direnv hook zsh)" + +## pyenv +export PYENV_ROOT="$HOME/.pyenv" +command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" + ## eksctl if [ ! -f "${fpath[1]}/_eksctl" ]; then command -v eksctl >/dev/null 2>&1 && eksctl completion zsh > "${fpath[1]}/_eksctl"