Files
dotfiles/nvim/after/plugin/project.lua
2022-10-02 13:58:53 +02:00

31 lines
623 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- project.nvim https://github.com/ahmedkhalf/project.nvim
local status_ok, project = pcall(require, "project_nvim")
if not status_ok then
return
end
project.setup({
active = true,
on_config_done = nil,
manual_mode = false,
detection_methods = {
"pattern",
},
patterns = {
".git",
"Makefile",
".gitignore",
"package.json",
"!node_modules",
},
show_hidden = false,
silent_chdir = true,
ignore_lsp = {},
datapath = vim.fn.stdpath("data"),
})
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
keymap("n", "<leader>pm", [[<Cmd>:Telescope projects<CR>]], opts)