Code Monkey home page Code Monkey logo

telescope-conda.nvim's Introduction

telescope-conda.nvim

An extension for telescope.nvim that allows the user to switch Anaconda Environments inside Neovim!

Install

Packer

add to require statement in use telescope

use {'nvim-telescope/telescope.nvim',
	requires = {
		'nvim-lua/plenary.nvim',
		'IllustratedMan-code/telescope-conda.nvim'
		}}

Setup

Anaconda Path

Set the path to the directory the Anaconda python distribution is located in. Default is $HOME. So if you installed Anaconda the normal way, this should not have to to be changed.

require('telescope').setup {
	extensions = {
		conda = {home = "/path/to/directory/"}
			}
}

Configure Anaconda

By default, setting conda environments will work with the :! bang commands and non-interactive terminals.

If you want conda evironments to be set for interactive terminals, such as when running :terminal, or using a repl package like kassio/neoterm, you will need to disable automatic activation of conda environments using this command.

conda config --set auto_activate_base false

This is due to the fact that :terminal will run the bashrc config, which alters the $PATH variable when enabling conda, which messes with the altercations that this package does to the neovim path.

Usage

The picker

require'telescope'.extensions.conda.conda{}

telescope-conda.nvim's People

Contributors

danielweidinger avatar illustratedman-code avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.