浏览代码

handsome highlightline

Chris 4 年之前
父节点
当前提交
d6a3859452
共有 2 个文件被更改,包括 20 次插入4 次删除
  1. 11 0
      lua/config.lua
  2. 9 4
      lua/nv-indentline/init.lua

+ 11 - 0
lua/config.lua

@@ -1,3 +1,14 @@
 AUTO_COMPLETE=true
 -- make list of languages
 AUTO_FORMAT=true
+
+-- ideas
+
+--[[
+
+nv.format.python='black'
+nv.format.python='yapf'
+nv.format.python='autopep8'
+
+
+]]

+ 9 - 4
lua/nv-indentline/init.lua

@@ -1,6 +1,11 @@
 vim.g.indent_blankline_buftype_exclude = {'terminal'}
-vim.g.indent_blankline_filetype_exclude = {'help', 'startify', 'dashboard', 'packer', }
+vim.g.indent_blankline_filetype_exclude = {'help', 'startify', 'dashboard', 'packer'}
 vim.g.indent_blankline_char = '▏'
-vim.g.indent_blankline_use_treesitter=true
--- vim.g.indent_blankline_show_current_context = true
--- vim.g.indent_blankline_context_patterns = {'class', 'function', 'method', '^if', '^while', 'div', '^for', '^object', '^table', 'block', 'arguments'}
+vim.g.indent_blankline_use_treesitter = true
+vim.g.indent_blankline_show_trailing_blankline_indent = false
+vim.g.indent_blankline_show_current_context = true
+vim.g.indent_blankline_context_patterns = {
+    'class', 'return', 'function', 'method', '^if', '^while', 'jsx_element', '^for', '^object', '^table', 'block',
+    'arguments', 'if_statement', 'else_clause', 'jsx_element', 'jsx_self_closing_element', 'try_statement',
+    'catch_clause'
+}