nvim: add noice

This commit is contained in:
Daniel Lundin 2022-12-30 11:48:44 +01:00
parent ec15b966ab
commit ed33147a1f
6 changed files with 43 additions and 3 deletions

View file

@ -1,12 +1,21 @@
return {
"hashivim/vim-terraform",
"pierreglaser/folding-nvim",
"jose-elias-alvarez/typescript.nvim",
"tjdevries/colorbuddy.vim",
"wbthomason/packer.nvim",
"jose-elias-alvarez/nvim-lsp-ts-utils",
"jjo/vim-cue",
"ckipp01/stylua-nvim",
{
"smjonas/inc-rename.nvim",
cmd = "IncRename",
config = true,
keys = {
{ "<Leader>rn", ":IncRename " },
},
},
{
"SmiteshP/nvim-navic",
config = function()

View file

@ -12,7 +12,6 @@ function M.config()
vim.keymap.set("i", "<C-k>", "<Cmd>lua vim.lsp.buf.signature_help()<CR>")
vim.keymap.set("n", "1gd", "<Cmd>lua vim.lsp.buf.type_definition()<CR>")
vim.keymap.set("n", "gf", "<Cmd>lua vim.lsp.buf.format()<CR>")
vim.keymap.set("n", "rn", "<Cmd>lua vim.lsp.buf.rename()<CR>")
vim.keymap.set("n", "[d", "<Cmd>lua vim.lsp.diagnostic.goto_prev()<CR>")
vim.keymap.set("n", "]d", "<Cmd>lua vim.lsp.diagnostic.goto_next()<CR>")
vim.keymap.set("n", "gwa", "<Cmd>lua vim.lsp.buf.add_workspace_folder()<CR>")

View file

@ -0,0 +1,17 @@
local M = {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
},
}
function M.config()
require("noice").setup({
presets = {
inc_rename = true,
},
})
end
return M

View file

@ -50,7 +50,8 @@ function M.config()
-- layout_defaults = {flip_columns = 160},
layout_config = {
preview_cutoff = 10,
prompt_position = "top",
prompt_position = "bottom",
mirror = true,
},
mappings = {
i = {

View file

@ -18,8 +18,13 @@ return {
"cpp",
"css",
"diff",
"dockerfile",
"gdscript",
"git_rebase",
"gitcommit",
"gitignore",
"go",
"gomod",
"graphql",
"help",
"html",
@ -29,16 +34,20 @@ return {
"jsdoc",
"json",
"jsonc",
"kotlin",
"latex",
"lua",
"make",
"markdown",
"markdown_inline",
"meson",
"ninja",
"php",
"proto",
"python",
"query",
"regex",
"rego",
"rust",
"scss",
"sql",
@ -52,6 +61,7 @@ return {
"vue",
"wgsl",
"yaml",
"zig",
},
highlight = {
enable = true,

View file

@ -30,6 +30,7 @@ function M.config()
CopilotSuggestion({ fg = "#0066cc", gui = "bold,italic" }),
LineNr({ fg = "#9FA8AC", gui = "bold,italic" }),
LineNrAbove({ fg = "#9F080C", gui = "bold,italic" }),
IndentBlanklineContextChar({ fg = "#FF713F", gui = "italic" }),
Indent1({ fg = "#DFDF9A", gui = "italic" }),
Indent2({ fg = "#BAE1FF", gui = "italic" }),
Indent3({ fg = "#BAFFC9", gui = "italic" }),
@ -93,6 +94,9 @@ function M.config()
-- LspCodeLens({ fg = "#00ff00", gui = "undercurl" }),
-- LspSignatureActiveParameter({ fg = "#ff0000", bg = "#ffffcc" }),
NoiceCmdlinePopup({ bg = "#E1F5FE" }),
NoiceMini({ bg = "#FFF9C4" }),
PMenu({ bg = "#F7F5F0" }),
PMenuBorder({ bg = "#F7F5F0", fg = "#886622" }),
PMenuSel({ fg = "#FFFFFF", bg = "#1976D2" }),