From 41ac2c043fc2175b5d64ab5df8c7f77a7c4308d7 Mon Sep 17 00:00:00 2001 From: long Date: Mon, 31 Oct 2022 09:55:07 -0500 Subject: [PATCH] small changes --- lua/base.lua | 3 ++- lua/helpers.lua | 1 + lua/plugins/config.lua | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/base.lua b/lua/base.lua index b912e54..339cfac 100644 --- a/lua/base.lua +++ b/lua/base.lua @@ -46,7 +46,8 @@ map("i", "", "") map("v", "y", "ygv") -- Terminal binds -local term_command = "split | set norelativenumber | set nonumber | term" +--local term_command = "split | set norelativenumber | set nonumber | term" +local term_command = "split | term" map("t", "", [[]]) map("n", [[\]], ":" .. term_command .. "") map("n", [[|]], ":v" .. term_command .. "") diff --git a/lua/helpers.lua b/lua/helpers.lua index c6dd720..2a57df1 100644 --- a/lua/helpers.lua +++ b/lua/helpers.lua @@ -11,6 +11,7 @@ end function M.lsp_config_defaults() return { root_dir = require("lspconfig.util").root_pattern( + ".ccls", "manage.py", "pyproject.toml", "package.json", diff --git a/lua/plugins/config.lua b/lua/plugins/config.lua index 81ea742..2dd4bcf 100644 --- a/lua/plugins/config.lua +++ b/lua/plugins/config.lua @@ -174,7 +174,7 @@ function M.nvim_treesitter() }, rainbow = { enable = true, - disable = ts_visual_disable, + disable = vim.tbl_extend("force", ts_visual_disable, { [5] = "svelte" }), extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean max_file_lines = nil, -- Do not enable for files with more than n lines, int -- colors = {}, -- table of hex strings @@ -316,6 +316,7 @@ function M.null_ls() null_ls.builtins.diagnostics.mypy, null_ls.builtins.formatting.black, null_ls.builtins.formatting.isort, + --null_ls.builtins.diagnostics.djlint, -- js null_ls.builtins.diagnostics.eslint, null_ls.builtins.code_actions.eslint,