style(nvim): cmdline in center
This commit is contained in:
parent
9b0769b2f3
commit
e16cd3874b
@ -21,7 +21,7 @@ map('n', '<Leader>h/',
|
||||
|
||||
|
||||
-- enable search highlight in search mode
|
||||
map('n', '/', ':set hlsearch<CR>/')
|
||||
map('n', '/', ':set hlsearch<CR>/', {silent = true})
|
||||
|
||||
-- copy selection to search line
|
||||
map('v', '<C-f>', '"fy:set hlsearch<CR>/\\V<C-r>f\\C<CR>')
|
||||
|
||||
@ -12,9 +12,9 @@ opt.relativenumber = true
|
||||
opt.clipboard:append { 'unnamed' }
|
||||
opt.clipboard:append { 'unnamedplus' }
|
||||
|
||||
opt.shortmess:append{a = true, s = true, I = true, c = true, S = true} -- disable startup message
|
||||
opt.shortmess:append{a = true, s = true, I = true, c = true}
|
||||
|
||||
opt.cmdheight = 1
|
||||
opt.cmdheight = 0
|
||||
vim.wo.signcolumn = "yes:1"
|
||||
|
||||
opt.shell = vim.env.SHELL
|
||||
|
||||
@ -36,7 +36,7 @@ return {
|
||||
event = "BufReadPost",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {"python", "lua", "vim", "html", "rust", "markdown"},
|
||||
ensure_installed = {"python", "lua", "vim", "html", "rust", "markdown", "regex"},
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
@ -164,4 +164,22 @@ return {
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {}
|
||||
},
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("noice").setup({
|
||||
presets = {
|
||||
bottom_search = true,
|
||||
},
|
||||
cmdline = {
|
||||
enabled = true,
|
||||
view = "cmdline_popup",
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user