Add plugins and bug fix
Added: - tabout - ts-context Fixed: - coq's preview window
This commit is contained in:
parent
89b0deb75b
commit
f0396d0fb3
@ -116,6 +116,12 @@ return require('packer').startup(function(use)
|
|||||||
after = 'nvim-treesitter',
|
after = 'nvim-treesitter',
|
||||||
config = function() require "plugins.matchup" end
|
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 {
|
use {
|
||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
requires = {{'nvim-lua/plenary.nvim'}},
|
requires = {{'nvim-lua/plenary.nvim'}},
|
||||||
@ -153,6 +159,26 @@ return require('packer').startup(function(use)
|
|||||||
after = "nvim-treesitter",
|
after = "nvim-treesitter",
|
||||||
config = function() require "plugins.nvim-ts-rainbow" end
|
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 {
|
use {
|
||||||
'winston0410/range-highlight.nvim',
|
'winston0410/range-highlight.nvim',
|
||||||
event = "CmdlineEnter",
|
event = "CmdlineEnter",
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
vim.g.coq_settings = {
|
vim.g.coq_settings = {
|
||||||
keymap = {recommended = false}, -- pre_select = true need a way to make tab enter
|
keymap = {recommended = false}, -- pre_select = true need a way to make tab enter
|
||||||
auto_start = true,
|
auto_start = true,
|
||||||
clients = {tabnine = {enabled = true}},
|
display = {ghost_text = {enabled = false}, icons = {mode = "none"}, preview = {border = "rounded" }}
|
||||||
display = {ghost_text = {enabled = false}, icons = {mode = "none"}, preview = {border = "NormalFloat"}}
|
|
||||||
}
|
}
|
||||||
vim.cmd('COQnow -s')
|
vim.cmd('COQnow -s')
|
||||||
|
Loading…
Reference in New Issue
Block a user