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

Added option field for custom nim arguments #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bluenote10
Copy link

A simple implementation of adding a configuration field for custom arguments. Closes #12

The implementation isn't perfect, because it simply splits the configuration string on whitespace to separate the individual arguments. I.e., it would fail on --passL:"some arg with spaces". Fortunately, the most frequent arguments do not have spaces.

Note: This is the first time I'm writing coffeescript / hacking in Atom, so a closer look to the pull request would be appreciated.

@@ -111,16 +117,17 @@ module.exports =
nimSuggestExe: fixSystemPath(atom.config.get('nim.nimsuggestExecutablePath') or 'nimsuggest')
nimExe: fixSystemPath(atom.config.get('nim.nimExecutablePath') or 'nim')
nimSuggestEnabled: atom.config.get 'nim.nimsuggestEnabled'
nimCustomArgs: parseArguments(atom.config.get('nim.nimCustomArguments') or '')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably could have handled this more elegantly, but I wasn't sure what value Atom provides by default.

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

Successfully merging this pull request may close these issues.

Allow command line arguments to be passed to nim
1 participant