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 { return {
"hashivim/vim-terraform", "hashivim/vim-terraform",
"pierreglaser/folding-nvim", "jose-elias-alvarez/typescript.nvim",
"tjdevries/colorbuddy.vim", "tjdevries/colorbuddy.vim",
"wbthomason/packer.nvim", "wbthomason/packer.nvim",
"jose-elias-alvarez/nvim-lsp-ts-utils", "jose-elias-alvarez/nvim-lsp-ts-utils",
"jjo/vim-cue", "jjo/vim-cue",
"ckipp01/stylua-nvim", "ckipp01/stylua-nvim",
{
"smjonas/inc-rename.nvim",
cmd = "IncRename",
config = true,
keys = {
{ "<Leader>rn", ":IncRename " },
},
},
{ {
"SmiteshP/nvim-navic", "SmiteshP/nvim-navic",
config = function() 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("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", "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", "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_prev()<CR>")
vim.keymap.set("n", "]d", "<Cmd>lua vim.lsp.diagnostic.goto_next()<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>") 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_defaults = {flip_columns = 160},
layout_config = { layout_config = {
preview_cutoff = 10, preview_cutoff = 10,
prompt_position = "top", prompt_position = "bottom",
mirror = true,
}, },
mappings = { mappings = {
i = { i = {

View file

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

View file

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