mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
nix: include rust-src so rust-analyzer works correctly.
This commit is contained in:
parent
f1539cc866
commit
7c99ff58fd
@ -135,8 +135,8 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
|
||||
// let len = 1;
|
||||
// })
|
||||
|
||||
if ((indent_scopes.contains(&parent_kind) && true) // not_first_or_last_sibling
|
||||
|| (indent_except_first_scopes.contains(&parent_kind) && true))
|
||||
if (indent_scopes.contains(&parent_kind) // && not_first_or_last_sibling
|
||||
|| indent_except_first_scopes.contains(&parent_kind))
|
||||
&& !starts_same_line
|
||||
{
|
||||
// println!("is_scope {}", parent_kind);
|
||||
|
@ -39,9 +39,9 @@ fn from(tuple: (usize, usize)) -> Self {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<tree_sitter::Point> for Position {
|
||||
fn into(self) -> tree_sitter::Point {
|
||||
tree_sitter::Point::new(self.row, self.col)
|
||||
impl From<Position> for tree_sitter::Point {
|
||||
fn from(pos: Position) -> Self {
|
||||
Self::new(pos.row, pos.col)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user