feat: add noice
This commit is contained in:
parent
bcf7ea595a
commit
445a68a53e
4 changed files with 27 additions and 6 deletions
|
@ -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 = '❘-',
|
||||
|
|
|
@ -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({
|
||||
|
|
11
lua/cosmic/plugins/noice/init.lua
Normal file
11
lua/cosmic/plugins/noice/init.lua
Normal 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
|
||||
},
|
||||
},
|
||||
})
|
|
@ -13,6 +13,7 @@ local defaults = {
|
|||
'markdown',
|
||||
'php',
|
||||
'python',
|
||||
'regex',
|
||||
'scss',
|
||||
'tsx',
|
||||
'typescript',
|
||||
|
|
Loading…
Add table
Reference in a new issue