From f464972ef0e3562a00801fc0bee96fd7db23d242 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 9 Sep 2021 20:27:11 +0200 Subject: [PATCH] Added lsp-rooter and ts-rainbow --- init.lua | 12 ++++++++++++ lua/plugins.lua | 2 ++ 2 files changed, 14 insertions(+) diff --git a/init.lua b/init.lua index 8d57e3f..a919816 100644 --- a/init.lua +++ b/init.lua @@ -122,3 +122,15 @@ require('neoclip').setup() require('telescope').load_extension('neoclip') -------------------- LUALINE ------------------------------- require('lualine').setup() +-------------------- LSP-ROOTER ---------------------------- +require("lsp-rooter").setup { } +-------------------- TS-RAINBOW ---------------------------- +require'nvim-treesitter.configs'.setup { + rainbow = { + enable = true, + 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 + -- termcolors = {} -- table of colour name strings + } +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 3c0dafd..4969785 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -36,4 +36,6 @@ return require('packer').startup(function() 'hoob3rt/lualine.nvim', requires = {'kyazdani42/nvim-web-devicons', opt = true} } + use {'ahmedkhalf/lsp-rooter.nvim'} + use {'p00f/nvim-ts-rainbow'} end)