Created
          March 5, 2024 14:52 
        
      - 
      
- 
        Save thorrr/a58fdc02680c8f715696686325d45506 to your computer and use it in GitHub Desktop. 
    .dir-locals.el: auto activate virtualenv called "venv" in python project directory
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ((nil . ( | |
| (eval . (setq pyvenv-activate (concat (locate-dominating-file default-directory ".dir-locals.el") "/venv/"))) | |
| (eval . (setq lsp-pylsp-server-command | |
| (concat (locate-dominating-file default-directory ".dir-locals.el") "/venv/bin/pylsp"))) | |
| ))) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment