obsidian and update to telescope for hidden files
This commit is contained in:
parent
4fe0e2df2e
commit
e9d73e2249
|
@ -0,0 +1 @@
|
|||
HALOOBA
|
35
init.lua
35
init.lua
|
@ -515,12 +515,35 @@ require('lazy').setup({
|
|||
-- You can put your default mappings / updates / etc. in here
|
||||
-- All the info you're looking for is in `:help telescope.setup()`
|
||||
--
|
||||
-- defaults = {
|
||||
-- mappings = {
|
||||
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
||||
-- },
|
||||
-- },
|
||||
-- pickers = {}
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
||||
},
|
||||
vimgrep_arguments = {
|
||||
'rg',
|
||||
'--hidden',
|
||||
'--color=never',
|
||||
'--no-heading',
|
||||
'--with-filename',
|
||||
'--line-number',
|
||||
'--column',
|
||||
'--smart-case',
|
||||
},
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
file_ignore_patterns = { '.git' },
|
||||
hidden = true,
|
||||
},
|
||||
live_grep = {
|
||||
file_ignore_patterns = {
|
||||
'.git',
|
||||
},
|
||||
additional_args = function(_)
|
||||
return { '--hidden' }
|
||||
end,
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
['ui-select'] = {
|
||||
require('telescope.themes').get_dropdown(),
|
||||
|
|
|
@ -3,6 +3,7 @@ return {
|
|||
version = "*", -- recommended, use latest release instead of latest commit
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
conceallevel = 1,
|
||||
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
|
||||
-- event = {
|
||||
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
||||
|
@ -21,11 +22,11 @@ return {
|
|||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "~/vaults/personal",
|
||||
path = "/Users/tawfeeq/vaults/personal",
|
||||
},
|
||||
{
|
||||
name = "work",
|
||||
path = "~/vaults/work",
|
||||
path = "/Users/tawfeeq/vaults/work",
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue