Skip to content

Commit

Permalink
Switch repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeville committed Dec 8, 2023
1 parent 02ab6ff commit 85dfe8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/common/.config/nvim/lua/config/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ local servers = {

pyright = {
root_dir = function(fname)
-- HAX: The API repo has a bunch of packages but a single pyrightconfig.json file...
local api_path = '/Users/damien/code/api'
if fname:sub(1, #api_path) == api_path then
return api_path
-- HAX: The OpenAI repo has a bunch of packages but a single pyrightconfig.json file...
local openai_path = '/Users/damien/code/openai'
if fname:sub(1, #openai_path) == openai_path then
return openai_path
end
return require('lspconfig.server_configurations.pyright').default_config.root_dir()
end,
Expand Down

0 comments on commit 85dfe8f

Please sign in to comment.