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

View file

@ -14,12 +14,21 @@ return packer.startup(function()
require('cosmic.theme.plugins').init(use, user_config) require('cosmic.theme.plugins').init(use, user_config)
use({ use({
'rcarriga/nvim-notify', 'folke/noice.nvim',
event = 'VimEnter',
config = function() config = function()
require('cosmic.plugins.notify') require('cosmic.plugins.noice')
end, end,
after = user_config.theme, requires = {
disable = vim.tbl_contains(user_config.disable_builtin_plugins, 'notify'), 'MunifTanjim/nui.nvim',
{
'rcarriga/nvim-notify',
config = function()
--[[ manually resetup notify to get our custom setup ]]
require('cosmic.plugins.notify')
end,
},
},
}) })
use({ 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', 'markdown',
'php', 'php',
'python', 'python',
'regex',
'scss', 'scss',
'tsx', 'tsx',
'typescript', 'typescript',