diff --git a/.config/nvim/lua/maps.lua b/.config/nvim/lua/maps.lua index e675aee..d0bcbd8 100644 --- a/.config/nvim/lua/maps.lua +++ b/.config/nvim/lua/maps.lua @@ -20,6 +20,8 @@ vim.keymap.set("n", "u", function() require("packer").sync() end) -- telescope vim.keymap.set("n", "tf", function() require("telescope.builtin").find_files() end) +vim.keymap.set("n", "tef", + function() require("telescope").extensions.file_browser.file_browser() end) vim.keymap.set("n", "tb", function() require("telescope.builtin").buffers() end) vim.keymap.set("n", "tg", diff --git a/.config/nvim/lua/plugin/packer.lua b/.config/nvim/lua/plugin/packer.lua index b1afd3b..8c53feb 100644 --- a/.config/nvim/lua/plugin/packer.lua +++ b/.config/nvim/lua/plugin/packer.lua @@ -29,6 +29,9 @@ packer.init({ removed_sym = '- ', -- The symbol for an unused plugin which was removed moved_sym = '→ ', -- The symbol for a plugin which was moved (e.g. from opt to start) header_sym = '━ ', -- The symbol for the header line in packer's display + open_fn = function() + return require('packer.util').float({ border = "single" }) + end, -- Display in a floating window }, }) @@ -51,7 +54,7 @@ return require("packer").startup(function() config = function() require("plugin.treesitter") end } - -- fuzzy finder + -- telescope use { "nvim-telescope/telescope.nvim", requires = { @@ -61,8 +64,16 @@ return require("packer").startup(function() { "nvim-telescope/telescope-fzf-native.nvim", run = "make" + }, + { + "nvim-telescope/telescope-file-browser.nvim", } }, + config = function() + require("telescope") + require("telescope").load_extension("fzf") + require("telescope").load_extension("file_browser") + end } -- LSP diff --git a/.config/nvim/lua/plugin/telescope.lua b/.config/nvim/lua/plugin/telescope.lua new file mode 100644 index 0000000..10c1cad --- /dev/null +++ b/.config/nvim/lua/plugin/telescope.lua @@ -0,0 +1,22 @@ +-- Author : swytch +-- Created : Monday Dec. 26, 2022 18:39:16 CET +-- License : GPLv3 +-- Description : treesitter config file + +require("telescope").setup { + extensions = { + file_browser = { + theme = "ivy", + -- disables netrw and use telescope-file-browser in its place + hijack_netrw = true, + mappings = { + ["i"] = { + -- your custom insert mode mappings + }, + ["n"] = { + -- your custom normal mode mappings + }, + }, + }, + }, +} diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 7325936..62d99da 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -70,7 +70,7 @@ super + shift + m $TERMINAL -g 128x32 -c "floating" -e $MUSIC_CLIENT super + shift + n - $TERMINAL -g 128x32 -c "floating" -e "$MAIL_CLIENT" + $TERMINAL -g 128x32 -c "floating" -e $MAIL_CLIENT super + shift + i $TERMINAL -g 128x32 -c "floating" -e tsession "irc" "$IRC_CLIENT" diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index a925f41..1b84748 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -1,8 +1,6 @@ #!/bin/zsh # This file is sourced when launching a DM from startx/xinit -# path -export PATH="$(find $HOME/.local/bin -type d | tr '\n' ':' | sed 's/:$//'):$PATH" # environment variables ## path