Compare commits

...

5 commits

Author SHA1 Message Date
49f55400d0
Revert "colorscheme: use borderless telescope"
This reverts commit ce9dffb286.
2024-06-16 06:51:01 +08:00
d7a985bb4b
comment: lazyload 2024-06-16 06:44:21 +08:00
4064e9210e
indentlines: lazyload 2024-06-16 06:44:13 +08:00
ffbb277cfc
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9a9a7552431c4f1a3b2eee9398641babf7c30d0e' (2024-03-12)
  → 'github:NixOS/nixpkgs/3f84a279f1a6290ce154c5531378acc827836fbb' (2024-06-13)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/720322c5352d7b7bd2cb3601a9176b0e91d1de7d' (2024-03-10)
  → 'github:numtide/treefmt-nix/e75ba0a6bb562d2ce275db28f6a36a2e4fd81391' (2024-06-13)
2024-06-16 06:31:19 +08:00
0470222a98
telescope: add lazy cmd 2024-06-16 06:30:41 +08:00
5 changed files with 9 additions and 42 deletions

View file

@ -22,11 +22,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1710222005, "lastModified": 1718276985,
"narHash": "sha256-irXySffHz7b82dZIme6peyAu+8tTJr1zyxcfUPhqUrg=", "narHash": "sha256-u1fA0DYQYdeG+5kDm1bOoGcHtX0rtC7qs2YA2N1X++I=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9a9a7552431c4f1a3b2eee9398641babf7c30d0e", "rev": "3f84a279f1a6290ce154c5531378acc827836fbb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -66,11 +66,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710088047, "lastModified": 1718271476,
"narHash": "sha256-eSqKs6ZCsX9xJyNYLeMDMrxzIDsYtaWClfZCOp0ok6Y=", "narHash": "sha256-35hUMmFesmchb+u7heKHLG5B6c8fBOcSYo0jj0CHLes=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "720322c5352d7b7bd2cb3601a9176b0e91d1de7d", "rev": "e75ba0a6bb562d2ce275db28f6a36a2e4fd81391",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,41 +2,7 @@ return {
"folke/tokyonight.nvim", "folke/tokyonight.nvim",
lazy = false, lazy = false,
priority = 1000, priority = 1000,
opts = { opts = {},
-- Borderless telescope
-- see: https://github.com/folke/tokyonight.nvim?tab=readme-ov-file#borderless-telescope-example
on_highlights = function(hl, c)
-- local prompt = "#2d3149"
local prompt = c.bg_highlight
hl.TelescopeNormal = {
bg = c.bg_dark,
fg = c.fg_dark,
}
hl.TelescopeBorder = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopePromptNormal = {
bg = prompt,
}
hl.TelescopePromptBorder = {
bg = prompt,
fg = prompt,
}
hl.TelescopePromptTitle = {
bg = prompt,
fg = prompt,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
end,
},
init = function() init = function()
vim.cmd([[ colorscheme tokyonight-night ]]) vim.cmd([[ colorscheme tokyonight-night ]])
end, end,

View file

@ -1,5 +1,4 @@
return { return {
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
opts = {}, opts = {},
lazy = false,
} }

View file

@ -1,5 +1,6 @@
return { return {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
event = { "BufReadPost" },
main = "ibl", main = "ibl",
opts = { opts = {
indent = { indent = {

View file

@ -5,6 +5,7 @@ return {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
}, },
opts = {}, opts = {},
cmd = "Telescope",
keys = { keys = {
{ "<Space>f", "<cmd>Telescope find_files<CR>", desc = "Find files" }, { "<Space>f", "<cmd>Telescope find_files<CR>", desc = "Find files" },
{ "<Space><Space>", "<cmd>Telescope oldfiles<CR>", desc = "Recent files" }, { "<Space><Space>", "<cmd>Telescope oldfiles<CR>", desc = "Recent files" },