Skip to content

Commit

Permalink
[nvim] Made folke noice healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
missingcharacter committed Jan 31, 2024
1 parent 4e000a9 commit 0083223
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions nvim/lua/missingcharacter/lazy/folke-noice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,26 @@ return {
"rcarriga/nvim-notify",
"nvim-treesitter/nvim-treesitter",
},
config = function()
require("noice").setup({
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
},
},
-- you can enable a preset for easier configuration
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
})
-- Dismiss Noice Message
vim.keymap.set("n", "<leader>nd", "<cmd>NoiceDismiss<CR>", { desc = "Dismiss Noice Message" })
end,
}
4 changes: 4 additions & 0 deletions nvim/lua/missingcharacter/lazy/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ return {
require("nvim-treesitter.configs").setup({
-- A list of parser names, or "all"
ensure_installed = {
"bash",
"c",
"javascript",
"jsdoc",
"lua",
"markdown",
"markdown_inline",
"query",
"regex",
"rust",
"typescript",
"vim",
Expand Down

0 comments on commit 0083223

Please sign in to comment.