Compare commits

...

5 Commits

Author SHA1 Message Date
David JULIEN 4419ce90b1 [system] cleanup: export PATH in the right place 2022-12-26 19:08:58 +01:00
David JULIEN a9cb5afdca [nvim] feat: add telescope-file-browser extension
properly setup Telescope in telescope.lua
provide a new keybinding
2022-12-26 19:08:58 +01:00
David JULIEN 3c7f8a29a7 [nvim] nvim: actually use fzf extension 2022-12-26 19:08:58 +01:00
David JULIEN 791919d058 [nvim] feat: change telescope comment in packer.lua 2022-12-26 19:08:58 +01:00
David JULIEN 84f11353e6 [nvim] feat: display packer in a floating window 2022-12-26 19:08:58 +01:00
4 changed files with 39 additions and 3 deletions

View File

@ -20,6 +20,8 @@ vim.keymap.set("n", "<leader>u", function() require("packer").sync() end)
-- telescope
vim.keymap.set("n", "<leader>tf",
function() require("telescope.builtin").find_files() end)
vim.keymap.set("n", "<leader>tef",
function() require("telescope").extensions.file_browser.file_browser() end)
vim.keymap.set("n", "<leader>tb",
function() require("telescope.builtin").buffers() end)
vim.keymap.set("n", "<leader>tg",

View File

@ -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

View File

@ -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
},
},
},
},
}

View File

@ -1,10 +1,11 @@
#!/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
export PATH="$(find $HOME/.local/bin -type d | tr '\n' ':' | sed 's/:$//'):$PATH"
## custom paths
export DOTFILES="$HOME/.dotfiles.git"
export LATEX_RESOURCES="$HOME/documents/latex"