Compare commits

..

2 Commits

Author SHA1 Message Date
ian a880f3a2c1 :feat: add fzf and indent blankline 2026-06-30 23:44:08 +02:00
ian 0ab0c08bc6 :chore: add oil.vim shortcuts 2026-06-30 23:43:32 +02:00
7 changed files with 34 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
vim.keymap.set('n', '<leader>f', '<cmd>FzfLua<cr>')
+1
View File
@@ -6,3 +6,4 @@ require('config.theme')
require('config.neogit') require('config.neogit')
require('config.oil') require('config.oil')
require('config.autopairs') require('config.autopairs')
require('config.fzf')
+8
View File
@@ -37,6 +37,14 @@ bind('n', '<leader>w', '<cmd>%s/\\s\\+$/<cr><cmd>nohlsearch<cr>', { desc = 'Dele
bind('n', '<leader>cc', '<cmd>cclose<cr>') bind('n', '<leader>cc', '<cmd>cclose<cr>')
bind('n', '<leader>co', '<cmd>copen<cr>') bind('n', '<leader>co', '<cmd>copen<cr>')
vim.keymap.set("n", "<M-1>", function()
local dir = vim.fn.expand("%:p:h")
if dir == "" then
dir = vim.loop.cwd()
end
require("oil").open(dir)
end, { desc = "Open Oil in current file directory" })
-- Telescope -- Telescope
-- bind('n', '<leader>ff', '<cmd>Telescope find_files<cr>') -- bind('n', '<leader>ff', '<cmd>Telescope find_files<cr>')
-- bind('n', '<leader>fg', '<cmd>Telescope live_grep<cr>') -- bind('n', '<leader>fg', '<cmd>Telescope live_grep<cr>')
+2 -1
View File
@@ -68,7 +68,8 @@ require("oil").setup({
["<C-h>"] = { "actions.select", opts = { horizontal = true } }, ["<C-h>"] = { "actions.select", opts = { horizontal = true } },
["<C-t>"] = { "actions.select", opts = { tab = true } }, ["<C-t>"] = { "actions.select", opts = { tab = true } },
["<C-p>"] = "actions.preview", ["<C-p>"] = "actions.preview",
["<C-c>"] = { "actions.close", mode = "n" }, -- ["<C-c>"] = { "actions.close", mode = "n" },
["q"] = { "actions.close", mode = "n" },
["<C-l>"] = "actions.refresh", ["<C-l>"] = "actions.refresh",
["-"] = { "actions.parent", mode = "n" }, ["-"] = { "actions.parent", mode = "n" },
["_"] = { "actions.open_cwd", mode = "n" }, ["_"] = { "actions.open_cwd", mode = "n" },
+2
View File
@@ -4,4 +4,6 @@ vim.pack.add({
{ src = "https://github.com/stevearc/oil.nvim", name = "oil.nvim" }, { src = "https://github.com/stevearc/oil.nvim", name = "oil.nvim" },
{ src = "https://github.com/nvim-tree/nvim-web-devicons", name = "web-dev-devicons" }, { src = "https://github.com/nvim-tree/nvim-web-devicons", name = "web-dev-devicons" },
{ src = "https://github.com/windwp/nvim-autopairs", name = "nvim-autopairs" }, { src = "https://github.com/windwp/nvim-autopairs", name = "nvim-autopairs" },
{ src = "https://github.com/ibhagwan/fzf-lua", name = "fzf-lua" },
{ src = "https://github.com/lukas-reineke/indent-blankline.nvim", name = "indent-blankline.nvim" },
}) })
+12
View File
@@ -4,6 +4,18 @@
"rev": "e068ab5f8261f23f6f71ffd8791ae40315b77b9c", "rev": "e068ab5f8261f23f6f71ffd8791ae40315b77b9c",
"src": "https://github.com/catppuccin/nvim" "src": "https://github.com/catppuccin/nvim"
}, },
"fzf'lua": {
"rev": "39da6060d53659acf3ec118200bc48721b29b8fd",
"src": "https://github.com/ibhagwan/fzf-lua"
},
"fzf-lua": {
"rev": "39da6060d53659acf3ec118200bc48721b29b8fd",
"src": "https://github.com/ibhagwan/fzf-lua"
},
"indent-blankline.nvim": {
"rev": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03",
"src": "https://github.com/lukas-reineke/indent-blankline.nvim"
},
"neogit": { "neogit": {
"rev": "43ea1a0854052e583f647e0b35879f0158a70a78", "rev": "43ea1a0854052e583f647e0b35879f0158a70a78",
"src": "https://github.com/neogitorg/neogit" "src": "https://github.com/neogitorg/neogit"
+8 -7
View File
@@ -6,23 +6,23 @@ local Plug = vim.fn['plug#']
vim.call('plug#begin', '~/.local/share/nvim/plugged') vim.call('plug#begin', '~/.local/share/nvim/plugged')
Plug 'lukas-reineke/indent-blankline.nvim' Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'lervag/vimtex' -- Plug 'lervag/vimtex'
-- Colorscheme -- Colorscheme
Plug 'sainnhe/sonokai' Plug 'sainnhe/sonokai'
Plug 'catppuccin/nvim' -- ok Plug 'catppuccin/nvim' -- ok
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround' -- ok
-- Git -- Git
-- Plug 'NeogitOrg/neogit' -- Plug 'NeogitOrg/neogit'
-- Plug 'sindrets/diffview.nvim' -- Plug 'sindrets/diffview.nvim'
-- Plug 'lewis6991/gitsigns.nvim' -- Plug 'lewis6991/gitsigns.nvim'
Plug 'ibhagwan/fzf-lua' Plug 'ibhagwan/fzf-lua' -- ok
Plug 'nvim-neo-tree/neo-tree.nvim' -- Plug 'nvim-neo-tree/neo-tree.nvim'
Plug 'MunifTanjim/nui.nvim' -- Plug 'MunifTanjim/nui.nvim'
-- Fs tree + deps -- Fs tree + deps
Plug 'nvim-lua/plenary.nvim' Plug 'nvim-lua/plenary.nvim'
@@ -51,9 +51,10 @@ Plug 'rafamadriz/friendly-snippets'
Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'}) Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'})
Plug('nvim-telescope/telescope-live-grep-args.nvim') Plug('nvim-telescope/telescope-live-grep-args.nvim')
Plug 'windwp/nvim-autopairs' Plug 'windwp/nvim-autopairs' -- ok
Plug 'windwp/nvim-ts-autotag' -- need treesitter
Plug 'windwp/nvim-ts-autotag'
-- EditorConfig -- EditorConfig
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'