Skip to content

nvim-java organize import like nvim-jdtls? #254

Closed Answered by s1n7ax
chetra-seng asked this question in Q&A
Discussion options

You must be logged in to vote

@chetra-seng No. Paste the entire snippet in init.lua or something. nvim_create_autocmd add something to be ran on an event. BufWritePre event is triggerd before buffer writes to file. In the callback, it runs organize import based on the file type.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@chetra-seng
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by chetra-seng
Comment options

You must be logged in to vote
5 replies
@chetra-seng
Comment options

@chetra-seng
Comment options

@s1n7ax
Comment options

@chetra-seng
Comment options

@s1n7ax
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants