Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

moving initialisation to lua, simplify setup #1

Open
matu3ba opened this issue Feb 18, 2021 · 2 comments
Open

moving initialisation to lua, simplify setup #1

matu3ba opened this issue Feb 18, 2021 · 2 comments

Comments

@matu3ba
Copy link

matu3ba commented Feb 18, 2021

@vigoux

  1. Currently there is module-template.vim with a intialisation method. A pure lua profile would decrease startup time, so usage should be written into the README of the plugin.

  2. Is there a specific reason, why we dont use enable = true as default behavior

require'nvim-treesitter.configs'.setup {
  require'nvim-treesitter.highlight'.setup {
    -- enable = true, REMOVE THIS LINE
    disable = { "c", "cpp", "rust" },
  }
  ...
  require`rainbow`.setup {}

like in the lsp setups? Buffer-specific configurations need to conduct the manual anyway.

  1. The lua startup profiler would be more correct or simpler to get correct with this change.
@matu3ba
Copy link
Author

matu3ba commented Mar 27, 2021

@vigoux Kindly ping. Would be nice to have this changed + documented for the 0.5 release.

@vigoux
Copy link
Member

vigoux commented Apr 1, 2021

Hi, thanks for the reminder.
Though the 0.5 change does not have anything to do here, as this is separate plugin 😉

I'll look into that today hopefully.

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

No branches or pull requests

2 participants