mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 17:58:46 +02:00
add: update config
This commit is contained in:
parent
3a93cb9d58
commit
be7f819532
7 changed files with 43 additions and 39 deletions
|
@ -2,4 +2,4 @@ local opts = { noremap = true, silent = true }
|
|||
local keymap = vim.api.nvim_set_keymap
|
||||
|
||||
keymap("n", "]h", '<cmd>lua print("Testing")<cr>', opts)
|
||||
keymap("n", "F", "<cmd>NvimTreeFindFileToggle<cr>", opts)
|
||||
keymap("n", "f", "<cmd>NvimTreeFindFileToggle<cr><cr><Up>", opts)
|
||||
|
|
|
@ -19,37 +19,37 @@ return {
|
|||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- {
|
||||
-- "echasnovski/mini.indentscope",
|
||||
-- version = false, -- wait till new 0.7.0 release to put it back on semver
|
||||
-- event = "BufReadPre",
|
||||
-- opts = {
|
||||
-- -- symbol = "▏",
|
||||
-- -- symbol = "│",
|
||||
-- symbol = icons.ui.LineMiddle,
|
||||
-- options = { try_as_border = true },
|
||||
-- },
|
||||
-- config = function(_, opts)
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
|
||||
-- callback = function()
|
||||
-- vim.b.miniindentscope_disable = true
|
||||
-- end,
|
||||
-- })
|
||||
-- require("mini.indentscope").setup(opts)
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
"echasnovski/mini.indentscope",
|
||||
version = false, -- wait till new 0.7.0 release to put it back on semver
|
||||
event = "BufReadPre",
|
||||
opts = {
|
||||
-- symbol = "▏",
|
||||
-- symbol = "│",
|
||||
symbol = icons.ui.LineMiddle,
|
||||
options = { try_as_border = true },
|
||||
},
|
||||
config = function(_, opts)
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
|
||||
callback = function()
|
||||
vim.b.miniindentscope_disable = true
|
||||
end,
|
||||
})
|
||||
require("mini.indentscope").setup(opts)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"hrsh7th/cmp-nvim-lua",
|
||||
enabled = false,
|
||||
},
|
||||
-- {
|
||||
-- "gbprod/yanky.nvim",
|
||||
-- event = "BufReadPre",
|
||||
-- config = function()
|
||||
-- require("user.yanky")
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
"gbprod/yanky.nvim",
|
||||
event = "BufReadPre",
|
||||
config = function()
|
||||
require("user.yanky")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "is0n/jaq-nvim",
|
||||
-- event = "BufRead",
|
||||
|
|
|
@ -4,7 +4,7 @@ return {
|
|||
"olimorris/onedarkpro.nvim",
|
||||
priority = 1000, -- Ensure it loads first
|
||||
config = function()
|
||||
local is_transparent = false
|
||||
local is_transparent = true
|
||||
require("onedarkpro").setup({
|
||||
styles = {
|
||||
types = "NONE",
|
||||
|
@ -116,6 +116,8 @@ return {
|
|||
TermCursor = { bg = "${fg}" },
|
||||
TSRainbowRed = { fg = "${cyan}" },
|
||||
TSRainbowCyan = { fg = "${red}" },
|
||||
NonText = { fg = "${fg}", bg = is_transparent and "NONE" or "#30333d" },
|
||||
MiniIndentscopeSymbol = { fg = "${cyan}" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
|
|
@ -25,7 +25,7 @@ end
|
|||
local dashboard = require("alpha.themes.dashboard")
|
||||
dashboard.section.header.val = board
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||
dashboard.button("F", " Find file", ":Telescope find_files <CR>"),
|
||||
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
||||
dashboard.button("p", " Find project", ":Telescope projects <CR>"),
|
||||
dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
|
||||
|
|
|
@ -52,7 +52,7 @@ keymap("v", "<C-c>", '"+y', opts)
|
|||
keymap("x", "<C-c>", '"+y', opts)
|
||||
keymap("n", "<C-v>", '"+P', opts)
|
||||
keymap("v", "<C-v>", '"+P', opts)
|
||||
keymap("i", "<C-v>", "<esc>pa", opts)
|
||||
keymap("i", "<C-v>", "<esc>pa<Left>", opts)
|
||||
keymap("x", "<C-v>", '"+P', opts)
|
||||
keymap("n", "<C-Z>", "<cmd>undo<CR>", opts)
|
||||
keymap("x", "<C-Z>", "<esc><cmd>undo<CR>", opts)
|
||||
|
|
|
@ -18,7 +18,7 @@ if data_exists then
|
|||
end
|
||||
startify.section.header.val = dash_model
|
||||
startify.section.top_buttons.val = {
|
||||
startify.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||
startify.button("F", " Find file", ":Telescope find_files <CR>"),
|
||||
startify.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
||||
startify.button("p", " Find project", ":Telescope projects <CR>"),
|
||||
startify.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue