fix nvim commandline

This commit is contained in:
thek4n 2024-01-18 11:30:08 +03:00
parent 52f778ff4b
commit d3883ca1ce
4 changed files with 31 additions and 46 deletions

View File

@ -12,9 +12,9 @@ opt.relativenumber = true
opt.clipboard:append { 'unnamed' } opt.clipboard:append { 'unnamed' }
opt.clipboard:append { 'unnamedplus' } opt.clipboard:append { 'unnamedplus' }
opt.shortmess:append { s = true, I = true } -- disable startup message opt.shortmess:append{a = true, s = true, I = true, c = true, S = true } -- disable startup message
opt.cmdheight = 0 opt.cmdheight = 1
vim.wo.signcolumn = "yes:2" vim.wo.signcolumn = "yes:2"
opt.shell = 'zsh' opt.shell = 'zsh'

View File

@ -1,21 +0,0 @@
return {
"nvim-neo-tree/neo-tree.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
},
config = function()
require("neo-tree").setup({
close_if_last_window = true,
filesystem = {
hide_gitignored = true,
hijack_netrw_behavior = "open_current",
},
window = {
mappings = {
["l"] = "open",
}
}
})
end
}

View File

@ -1,23 +1,29 @@
return { return {
"folke/noice.nvim", "folke/noice.nvim",
config = function() dependencies = {
require("noice").setup({ "MunifTanjim/nui.nvim"
cmdline = { },
enabled = true, -- enables the Noice cmdline UI config = function()
view = "cmdline_popup", require("noice").setup({
format = { cmdline = {
cmdline = { pattern = "^:", icon = "", lang = "vim" }, enabled = true, -- enables the Noice cmdline UI
search_down = { kind = "search", pattern = "^/", icon = " ", lang = "regex" }, view = "cmdline_popup",
search_up = { kind = "search", pattern = "^%?", icon = " ", lang = "regex" }, format = {
filter = { pattern = "^:%s*!", icon = "$", lang = "bash" }, cmdline = { pattern = "^:", icon = "", lang = "vim" },
lua = { pattern = { "^:%s*lua%s+", "^:%s*lua%s*=%s*", "^:%s*=%s*" }, icon = "", lang = "lua" }, search_down = { kind = "search", pattern = "^/", icon = " ", lang = "regex" },
help = { pattern = "^:%s*he?l?p?%s+", icon = "" }, search_up = { kind = "search", pattern = "^%?", icon = " ", lang = "regex" },
input = {}, filter = { pattern = "^:%s*!", icon = "$", lang = "bash" },
}, lua = { pattern = { "^:%s*lua%s+", "^:%s*lua%s*=%s*", "^:%s*=%s*" }, icon = "", lang = "lua" },
}, help = { pattern = "^:%s*he?l?p?%s+", icon = "" },
messages = { input = {},
enabled = false, },
}, },
}) messages = {
end, enabled = false,
},
notify = {
enabled = false,
}
})
end,
} }

View File

@ -71,8 +71,8 @@ bindkey -M viins '\e.' insert-last-word
bindkey -M vicmd '^K' up-line-or-history bindkey -M vicmd '^K' up-line-or-history
bindkey -M vicmd '^J' down-line-or-history bindkey -M vicmd '^J' down-line-or-history
bindkey '^[[Z' reverse-menu-complete bindkey '^[[Z' reverse-menu-complete
bindkey "^[[A~" history-beginning-search-backward # bindkey "^[[A~" history-beginning-search-backward
bindkey "^[[B~" history-beginning-search-forward # bindkey "^[[B~" history-beginning-search-forward
insert-sudo() { insert-sudo() {