Browse Source

improvements

Chris 4 năm trước cách đây
mục cha
commit
373ce12422
4 tập tin đã thay đổi với 17 bổ sung2 xóa
  1. 1 0
      init.lua
  2. 9 0
      lua/nv-globals.lua
  3. 1 1
      lua/nv-indentline/init.lua
  4. 6 1
      lua/nv-treesitter/init.lua

+ 1 - 0
init.lua

@@ -58,4 +58,5 @@ require('lsp.html-ls')
 require('lsp.efm-general-ls')
 require('lsp.virtual_text')
 
+-- vim.lsp.callbacks["textDocument/publishDiagnostics"] = function() end
 -- vim.lsp.handlers["textDocument/publishDiagnostics"] = nil

+ 9 - 0
lua/nv-globals.lua

@@ -1,2 +1,11 @@
+local nv_options = {}
+
 DATA_PATH = vim.fn.stdpath('data')
 CACHE_PATH = vim.fn.stdpath('cache')
+
+python = {
+linter = nil,
+
+}
+
+return nv_options

+ 1 - 1
lua/nv-indentline/init.lua

@@ -7,5 +7,5 @@ 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', 'import_statement'
+    'catch_clause', 'import_statement', 'operation_type'
 }

+ 6 - 1
lua/nv-treesitter/init.lua

@@ -1,8 +1,13 @@
 require'nvim-treesitter.configs'.setup {
     ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
+	-- TODO seems to be broken
+	ignore_install = { "haskell" },
     highlight = {
-        enable = true -- false will disable the whole extension
+        enable = true, -- false will disable the whole extension
     },
+	indent = {
+		enable = true
+	  },
     playground = {
         enable = true,
         disable = {},