Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python support is messing with plugin , works well other config of neovim #1875

Closed
Aneeqasif opened this issue Mar 31, 2023 · 6 comments
Closed

Comments

@Aneeqasif
Copy link

i followed #1417 and :echo has('python3') return 1
but as soon as i install luk400/vim-jukit
python just retun 0 no matter what i do untill i remove relevant lines from core/init.lua

for _, provider in ipairs { "node", "perl", "python3", "ruby" } do
  vim.g["loaded_" .. provider .. "_provider"] = 0
end

but when i use another config , the :echo has('python3') always return 1 even after installation of the plugin.
if nvim comes by default with these providers enabled then why they are disabled in core/init

@siduck
Copy link
Member

siduck commented Mar 31, 2023

add this in your custom/init.lua

local enable_providers = {
      "python3_provider",
      "node_provider",
      -- and so on
    }
    
    for _, plugin in pairs(enable_providers) do
      vim.g["loaded_" .. plugin] = nil
      vim.cmd("runtime " .. plugin)
    end

if nvim comes by default with these providers enabled then why they are disabled in core/init

good question, not all users code in ruby, python etc langs, in nvchad you just enable what you want.

@siduck siduck closed this as completed Mar 31, 2023
@siduck
Copy link
Member

siduck commented Mar 31, 2023

also :echo has('python3') returns 0 even on nvim -u NONE here.

@Aneeqasif
Copy link
Author

also :echo has('python3') returns 0 even on nvim -u NONE here.

idk but removing the suckless lines in init.lua get it working for me :)

@siduck
Copy link
Member

siduck commented Mar 31, 2023

also :echo has('python3') returns 0 even on nvim -u NONE here.

idk but removing the suckless lines in init.lua get it working for me :)

dude just add the above code in your custom/init.lua

@siduck
Copy link
Member

siduck commented Mar 31, 2023

you wont get nvchad updates if you edit files outside of custom dir

@siduck
Copy link
Member

siduck commented Mar 31, 2023

Proof that it works here https://0x0.st/HHZp.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants