Skip to content

Commit

Permalink
change continue_comment config name
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Dec 9, 2024
1 parent 0760c4c commit 5180f9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3486,7 +3486,7 @@ fn open(cx: &mut Context, open: Open) {
)
};

let continue_comment_token = if doc.config.load().continue_comment {
let continue_comment_token = if doc.config.load().continue_comments {
doc.language_config()
.and_then(|config| config.comment_tokens.as_ref())
.and_then(|tokens| comment::get_comment_token(text, tokens, cursor_line))
Expand Down Expand Up @@ -3968,7 +3968,7 @@ pub mod insert {

let mut new_text = String::new();

let continue_comment_token = if doc.config.load().continue_comment {
let continue_comment_token = if doc.config.load().continue_comments {
doc.language_config()
.and_then(|config| config.comment_tokens.as_ref())
.and_then(|tokens| comment::get_comment_token(text, tokens, current_line))
Expand Down
2 changes: 1 addition & 1 deletion helix-term/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::keymap;
se crate::keymap;
use crate::keymap::{merge_keys, KeyTrie};
use helix_loader::merge_toml_values;
use helix_view::document::Mode;
Expand Down
6 changes: 3 additions & 3 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ pub struct Config {
/// Whether to instruct the LSP to replace the entire word when applying a completion
/// or to only insert new text
pub completion_replace: bool,
/// `true` if helix should automatically add a (line-)comment token, if you're currently in a comment
/// `true` if helix should automatically add a line comment token if you're currently in a comment
/// and press `enter`.
pub continue_comment: bool,
pub continue_comments: bool,
/// Whether to display infoboxes. Defaults to true.
pub auto_info: bool,
pub file_picker: FilePickerConfig,
Expand Down Expand Up @@ -988,7 +988,7 @@ impl Default for Config {
},
text_width: 80,
completion_replace: false,
continue_comment: true,
continue_comments: true,
workspace_lsp_roots: Vec::new(),
default_line_ending: LineEndingConfig::default(),
insert_final_newline: true,
Expand Down

0 comments on commit 5180f9d

Please sign in to comment.