|
@@ -156,29 +156,6 @@ local tsj_utils = require('treesj.langs.utils')
|
|
|
-- Treesitter-aware split/join
|
|
|
require('treesj').setup({
|
|
|
use_default_keymaps = false,
|
|
|
-
|
|
|
- langs = {
|
|
|
- nix = {
|
|
|
- list_expression = tsj_utils.set_preset_for_list({
|
|
|
- both = {
|
|
|
- separator = '',
|
|
|
- },
|
|
|
- }),
|
|
|
- binding_set = tsj_utils.set_preset_for_non_bracket(),
|
|
|
- let_expression = {
|
|
|
- target_nodes = { 'binding_set' },
|
|
|
- },
|
|
|
- attrset_expression = {
|
|
|
- target_nodes = { 'binding_set' },
|
|
|
- },
|
|
|
-
|
|
|
- -- this is a bit janky with the indentation
|
|
|
- inherited_attrs = tsj_utils.set_preset_for_non_bracket(),
|
|
|
- inherit = {
|
|
|
- target_nodes = { 'inherited_attrs' },
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
})
|
|
|
|
|
|
-- completion
|