diff --git a/lua/pluginList.lua b/lua/pluginList.lua index 29ec599..d5d03df 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -116,6 +116,12 @@ return require('packer').startup(function(use) after = 'nvim-treesitter', config = function() require "plugins.matchup" end } + -- Lua + use { + 'abecodes/tabout.nvim', + config = function() require('tabout').setup {} end, + after = {'nvim-treesitter', 'nvim-autopairs', 'coq_nvim'} -- if a completion plugin is using tabs load it before + } use { 'nvim-telescope/telescope.nvim', requires = {{'nvim-lua/plenary.nvim'}}, @@ -153,6 +159,26 @@ return require('packer').startup(function(use) after = "nvim-treesitter", config = function() require "plugins.nvim-ts-rainbow" end } + use { + 'nvim-treesitter/nvim-treesitter-context', + after = "nvim-treesitter", + config = function() + require'treesitter-context'.setup { + enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) + max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. + patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries. + -- For all filetypes + -- Note that setting an entry here replaces all other patterns for this entry. + -- By setting the 'default' entry below, you can control which nodes you want to + -- appear in the context window. + default = { + 'class', 'function', 'method', 'for', -- These won't appear in the context + 'while', 'if', 'switch', 'case' + } + } + } + end + } use { 'winston0410/range-highlight.nvim', event = "CmdlineEnter", diff --git a/lua/plugins/coq.lua b/lua/plugins/coq.lua index 122f51c..cdc4e29 100644 --- a/lua/plugins/coq.lua +++ b/lua/plugins/coq.lua @@ -1,7 +1,6 @@ vim.g.coq_settings = { keymap = {recommended = false}, -- pre_select = true need a way to make tab enter auto_start = true, - clients = {tabnine = {enabled = true}}, - display = {ghost_text = {enabled = false}, icons = {mode = "none"}, preview = {border = "NormalFloat"}} + display = {ghost_text = {enabled = false}, icons = {mode = "none"}, preview = {border = "rounded" }} } vim.cmd('COQnow -s')