garymjr / nvim-snippets

Snippet support using native neovim snippets
MIT License
215 stars 13 forks source link

fix/handle symlinks #17

Closed sQVe closed 3 months ago

sQVe commented 3 months ago

Overview

This pull request primarily adds proper handling of symlinks, while also improving scan_for_snippets.

This pull request introduces a new .editorconfig file to standardize coding styles across the project and refactors the scan_for_snippets function in lua/snippets/utils/init.lua to improve its functionality and readability.

Key changes

Configuration

Code Refactoring

sQVe commented 3 months ago

Marking this as draft until I have fixed the breaking directory change.

sQVe commented 3 months ago

PR should now be ready for review.

garymjr commented 3 months ago

Overall this looks good. Can you remove the .editorconfig file from this PR though? I think I'd rather add a stylua config to handle consistent formatting.

sQVe commented 3 months ago

Overall this looks good. Can you remove the .editorconfig file from this PR though? I think I'd rather add a stylua config to handle consistent formatting.

Of course. I'll remove it as soon as possible.

One might argue that having a .editorconfig never hurts, since Neovim has builtin support for it.

sQVe commented 3 months ago

@garymjr Removed the .editorconfig now.

garymjr commented 3 months ago

Thanks! Merging now