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

Whitelisting instead of blacklisting #353

Open
eyalk11 opened this issue Sep 16, 2023 · 2 comments
Open

Whitelisting instead of blacklisting #353

eyalk11 opened this issue Sep 16, 2023 · 2 comments

Comments

@eyalk11
Copy link

eyalk11 commented Sep 16, 2023

Please allow for whitelisting the projects/file extensions I want guttentags to run on, because it is going astray , parsing many unrequired files and slows down the system.

i now see that you can specify file list commnad.

command! GutenTagRun :call gutentags#setup_gutentags() <bar> call timer_start(15,':GutentagsUpdate')<CR>

For some reason, this doesn't work. It doesn't recognize the Update command. Do you know why? (I disabled the au)

@eyalk11
Copy link
Author

eyalk11 commented Sep 17, 2023

OK , my solution is :

au! gutentags_detect 

let g:gutentags_file_list_command = {
    \ 'markers': {
        \ '.git': 'git ls-files *.py *.vim',
        \ },
    \ }

function! Gut(bb) 
exec 'cd '.expand('%:p:h')
:GutentagsUpdate
endfunction 
au filetype * command! -buffer GutenTagRun :call gutentags#setup_gutentags() <bar> :call timer_start(15,'Gut')<CR>



@mizlan
Copy link

mizlan commented Nov 17, 2023

@eyalk11 Is the timer_start call necessary here? Just curious because I had a similar problem as you (wanting updates only when I explicitly wanted to update).

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