Updated neovim and noice config

This commit is contained in:
2023-10-06 09:10:39 -04:00
parent 2f6630b272
commit a8e8228696
4 changed files with 55 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
local keymap = vim.keymap.set
local default_options = {noremap = true, silent = true}
local telescope = require('telescope.builtin')
-- local expr_options = {noremap = true, expr = true, silent = true}
vim.g.mapleader = " "
vim.g.maplocalleader = " "
@@ -52,6 +53,36 @@ vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
keymap('n', '<leader>f', '<cmd>:Format<CR>', default_options)
keymap('n', '<leader>F', '<cmd>:FormatWrite<CR>', default_options)
-- Finds
-- Find espanso config files.
keymap('n', '<leader>fn', function()
telescope.find_files({
cwd='$HOME/.dotfiles/espanso/espanso'
})
end, default_options)
-- Find nvim config files.
keymap('n', '<leader>fn', function()
telescope.find_files({
cwd='$HOME/.dotfiles/nvim/m-housh'
})
end, default_options)
-- Find script files.
keymap('n', '<leader>fs', function()
telescope.find_files({
cwd='$HOME/.dotfiles/scripts/scripts'
})
end, default_options)
-- Find zsh config files.
keymap('n', '<leader>fz', function()
telescope.find_files({
cwd='$HOME/.dotfiles/zsh/config'
})
end, default_options)
-- Turn off highlighting after search.
keymap('n', '<leader>n', '<cmd>:noh<cr>', default_options)

View File

@@ -1,6 +1,7 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
-- config.lsp.signature.enabled = false
opts = {
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
@@ -20,11 +21,20 @@ return {
signature = { enabled = false },
},
routes = {
{
{ -- enables messages for showing macro recording.
view = "notify",
filter = { event = "msg_showmode" },
},
}
{ -- Hide the written messages.
view = 'notify',
filter = {
event = "msg_show",
kind = "",
find = "written"
},
opts = { skip = true }
}
},
},
dependencies = {
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
@@ -33,5 +43,5 @@ return {
-- `nvim-notify` is only needed, if you want to use the notification view.
-- If not available, we use `mini` as the fallback
"rcarriga/nvim-notify",
}
},
}