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
|
-- enable search highlight in search mode
|
||||||
map('n', '/', ':set hlsearch<CR>/')
|
map('n', '/', ':set hlsearch<CR>/', {silent = true})
|
||||||
|
|
||||||
-- copy selection to search line
|
-- copy selection to search line
|
||||||
map('v', '<C-f>', '"fy:set hlsearch<CR>/\\V<C-r>f\\C<CR>')
|
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 { 'unnamed' }
|
||||||
opt.clipboard:append { 'unnamedplus' }
|
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"
|
vim.wo.signcolumn = "yes:1"
|
||||||
|
|
||||||
opt.shell = vim.env.SHELL
|
opt.shell = vim.env.SHELL
|
||||||
|
|||||||
@ -36,7 +36,7 @@ return {
|
|||||||
event = "BufReadPost",
|
event = "BufReadPost",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter.configs").setup({
|
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,
|
auto_install = true,
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|||||||
@ -164,4 +164,22 @@ return {
|
|||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
opts = {}
|
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