From 580eb5dc2ac62eb80204d71f9ac4d52c91553eb9 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 17 Aug 2023 02:59:26 +0200 Subject: [PATCH] nvim: load colorscheme first and indent on demand --- .config/nvim/lua/loadplugins.lua | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.config/nvim/lua/loadplugins.lua b/.config/nvim/lua/loadplugins.lua index f08dfc0..46a1e68 100644 --- a/.config/nvim/lua/loadplugins.lua +++ b/.config/nvim/lua/loadplugins.lua @@ -16,6 +16,7 @@ return require("lazy").setup({ -- colorscheme { 'tiyn/tccs.nvim', + priority = 1000, config = function() require('tccs').setup() vim.cmd('colorscheme tccs') @@ -31,6 +32,7 @@ return require("lazy").setup({ -- show indentation lines { 'lukas-reineke/indent-blankline.nvim', + event = "BufReadPre", opts = { show_current_context = true, show_current_context_start = true @@ -141,9 +143,6 @@ return require("lazy").setup({ config = function() require("null-ls").setup({ sources = { - require("null-ls-embedded").nls_source.with({ - filetypes = { "markdown" } - }), require("null-ls").builtins.formatting.black, require("null-ls").builtins.formatting.mdformat } @@ -155,10 +154,9 @@ return require("lazy").setup({ opts = { automatic_installation = true, ensure_installed = { "black", "mdformat" } - } }, - 'LostNeophyte/null-ls-embedded' + }, opts = { ui = { @@ -202,11 +200,10 @@ return require("lazy").setup({ automatic_setup = true, ensure_installed = { "bashls", - "jdtls", "lua_ls", "marksman", "nimls", - "pyright", + "pylsp", "texlab" } }) @@ -367,21 +364,18 @@ return require("lazy").setup({ 'p00f/nvim-ts-rainbow', }, config = function() - require("nvim-treesitter").setup({ + require("nvim-treesitter.configs").setup({ ensure_installed = { "bash", - "c", - "cpp", "css", "html", - "java", "markdown", "latex", "python", + "lua", }, + highlight = { enable = true }, autotag = { enable = true }, - }) - require("nvim-treesitter.configs").setup({ rainbow = { enable = true, extended_mode = true, @@ -588,7 +582,7 @@ return require("lazy").setup({ config = function() vim.o.nospell = true end - } + }, }, -- lazy.nvim configuration