feat: add noice

This commit is contained in:
Matthew Leong 2022-10-27 10:47:14 -07:00
parent bcf7ea595a
commit 445a68a53e
4 changed files with 27 additions and 6 deletions

View file

@ -32,7 +32,7 @@ opt.softtabstop = indent
opt.tabstop = indent
-- search
opt.hlsearch = false
opt.hlsearch = true
opt.ignorecase = true
opt.smartcase = true
opt.wildignore = opt.wildignore + { '*/node_modules/*', '*/.git/*', '*/vendor/*' }
@ -41,7 +41,7 @@ opt.wildmenu = true
-- ui
opt.cursorline = true
opt.laststatus = 2
opt.lazyredraw = true
--[[ opt.lazyredraw = true ]]
opt.list = true
opt.listchars = {
tab = '❘-',

View file

@ -14,12 +14,21 @@ return packer.startup(function()
require('cosmic.theme.plugins').init(use, user_config)
use({
'rcarriga/nvim-notify',
'folke/noice.nvim',
event = 'VimEnter',
config = function()
require('cosmic.plugins.notify')
require('cosmic.plugins.noice')
end,
after = user_config.theme,
disable = vim.tbl_contains(user_config.disable_builtin_plugins, 'notify'),
requires = {
'MunifTanjim/nui.nvim',
{
'rcarriga/nvim-notify',
config = function()
--[[ manually resetup notify to get our custom setup ]]
require('cosmic.plugins.notify')
end,
},
},
})
use({

View file

@ -0,0 +1,11 @@
require('noice').setup({
lsp = {
hover = {
enabled = false,
},
signature = {
enabled = false,
auto_open = false, -- Automatically show signature help when typing a trigger character from the LSP
},
},
})

View file

@ -13,6 +13,7 @@ local defaults = {
'markdown',
'php',
'python',
'regex',
'scss',
'tsx',
'typescript',