small fix
This commit is contained in:
parent
ad33ed3c0e
commit
8e6b274df1
@ -8,38 +8,41 @@ map("n", "<C-right>", "<C-i>", { desc = "LSP Forward" })
|
||||
map("v", "<C-c>", '"+y', { desc = "Copy selected" })
|
||||
map({ "i", "n" }, "<C-v>", '<ESC>"+p', { desc = "Past" })
|
||||
|
||||
map({ "n", "v", "i" }, "<C-s>", "<ESC>:w<CR>", { desc = "Save file" })
|
||||
map({ "n", "v", "i" }, "<C-s>", "<Cmd>w<CR>", { desc = "Save file" })
|
||||
|
||||
map("n", "<C-S-left>", "<C-w>h", { desc = "switch window left" })
|
||||
map("n", "<C-S-right>", "<C-w>l", { desc = "switch window right" })
|
||||
map("n", "<C-S-down>", "<C-w>j", { desc = "switch window down" })
|
||||
map("n", "<C-S-up>", "<C-w>k", { desc = "switch window up" })
|
||||
|
||||
map("n", "<C-q>", ":q<CR>", { desc = "close window" })
|
||||
|
||||
map("n", "<C-/>", "gcc", { desc = "toggle comment", remap = true })
|
||||
map("v", "<C-/>", "gc", { desc = "toggle comment", remap = true })
|
||||
|
||||
-- neo-tree
|
||||
map({ "n", "v" }, "<leader>e", ":Neotree<CR>", { desc = "nvimtree focus window" })
|
||||
map({ "n", "v" }, "<leader>g", ":Neotree git_status float<CR>", { desc = "open gis status" })
|
||||
map({ "n", "v" }, "<leader>e", "<Cmd>Neotree<CR>", { desc = "nvimtree focus window" })
|
||||
map({ "n", "v" }, "<leader>g", "<Cmd>Neotree git_status float<CR>", { desc = "open gis status" })
|
||||
map({ "n", "v" }, "<C-q>", "<Cmd>BufferClose<CR>", { desc = "close window" })
|
||||
|
||||
-- telescope
|
||||
map("n", "<leader>ff", ":Telescope live_grep<CR>", { desc = "telescope live grep" })
|
||||
map("n", "<leader>r", ":Telescope lsp_references<CR>", { desc = "telescope lsp references" })
|
||||
map("n", "<leader>f", "<Cmd>Telescope live_grep<CR>", { desc = "telescope live grep" })
|
||||
map("n", "<leader>r", "<Cmd>Telescope lsp_references<CR>", { desc = "telescope lsp references" })
|
||||
map("n", "<leader>d", "<Cmd>Telescope lsp_definitions<CR>", { desc = "telescope lsp definitions" })
|
||||
|
||||
-- barbar
|
||||
map("n", "<tab>", ":BufferNext<CR>", { desc = "Next tab" })
|
||||
map("n", "<S-tab>", ":BufferPrevious<CR>", { desc = "Previous tab" })
|
||||
map("n", "<tab>", "<Cmd>BufferNext<CR>", { desc = "Next tab" })
|
||||
map("n", "<S-tab>", "<Cmd>BufferPrevious<CR>", { desc = "Previous tab" })
|
||||
|
||||
-- dap
|
||||
map("n", "<leader>bb", dap.toggle_breakpoint, { desc = "Toggle breakpoint" })
|
||||
|
||||
-- nvterm
|
||||
map("n", "<C-t>", function()
|
||||
map("n", "<leader>t", function()
|
||||
term.toggle("horizontal")
|
||||
end, { desc = "Open terminal" })
|
||||
|
||||
-- searchbox
|
||||
map({ "n", "v", "i" }, "<C-f>", "<Cmd>SearchBoxIncSearch<CR>", { desc = "Search in file" })
|
||||
|
||||
-- menu
|
||||
local menu = require("menu")
|
||||
|
||||
|
@ -3,7 +3,9 @@ local o = vim.o
|
||||
local g = vim.g
|
||||
local wo = vim.wo
|
||||
|
||||
opt.fillchars = { eob = " " }
|
||||
-- vim.api.nvim_set_hl(0, "NeoTreeFloatBorder", { ctermfg = 253 })
|
||||
|
||||
opt.fillchars = { eob = " ", vert = "│" }
|
||||
|
||||
opt.whichwrap:append("<>[]")
|
||||
|
||||
|
@ -13,9 +13,10 @@ return {
|
||||
fn.sign_define("DiagnosticSignError", { text = " ", texthl = "DiagnosticSignError" })
|
||||
fn.sign_define("DiagnosticSignWarn", { text = " ", texthl = "DiagnosticSignWarn" })
|
||||
fn.sign_define("DiagnosticSignInfo", { text = " ", texthl = "DiagnosticSignInfo" })
|
||||
fn.sign_define("DiagnosticSignHint", { text = " ", texthl = "DiagnosticSignHint" })
|
||||
fn.sign_define("DiagnosticSignHint", { text = " ", texthl = "DiagnosticSignHint" })
|
||||
|
||||
require("neo-tree").setup({
|
||||
-- popup_border_style = "rounded",
|
||||
default_component_configs = {
|
||||
modified = {
|
||||
symbol = "",
|
||||
|
15
lua/plugins/searchbox.lua
Normal file
15
lua/plugins/searchbox.lua
Normal file
@ -0,0 +1,15 @@
|
||||
return {
|
||||
"VonHeikemen/searchbox.nvim",
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("searchbox").setup({
|
||||
popup = {
|
||||
win_options = {
|
||||
winhighlight = "Normal:Normal,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user