show ignored diretories
This commit is contained in:
parent
8ec2cb3b76
commit
1c0a2345e0
37
init.lua
37
init.lua
@ -1,4 +1,5 @@
|
||||
require "core"
|
||||
vim.api.nvim_set_var('mapleader', ';')
|
||||
|
||||
local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1]
|
||||
|
||||
@ -19,3 +20,39 @@ end
|
||||
dofile(vim.g.base46_cache .. "defaults")
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
require "plugins"
|
||||
|
||||
-- Configure Telescope to scroll files with ctrl+j/k
|
||||
local actions = require('telescope.actions')
|
||||
local sorters = require('telescope.sorters')
|
||||
|
||||
require('telescope').setup {
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
},
|
||||
file_sorter = sorters.get_fzy_sorter,
|
||||
file_ignore_patterns = { '.git/*', 'node_modules/*', 'vendor/*' },
|
||||
generic_sorter = sorters.get_generic_fuzzy_sorter,
|
||||
},
|
||||
extensions = {
|
||||
fzf = {
|
||||
fuzzy = true,
|
||||
override_generic_sorter = true,
|
||||
override_file_sorter = true,
|
||||
case_mode = "smart_case",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<leader>e', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
|
||||
|
||||
-- Cycle through open buffers with leader+a
|
||||
vim.api.nvim_set_keymap('n', '<leader>a', ':bprevious<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<leader>f', ':bnext<CR>', {noremap = true, silent = true})
|
||||
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||
|
@ -19,8 +19,8 @@ local options = {
|
||||
hide_root_folder = true,
|
||||
},
|
||||
git = {
|
||||
enable = false,
|
||||
ignore = true,
|
||||
enable = true,
|
||||
ignore = false,
|
||||
},
|
||||
filesystem_watchers = {
|
||||
enable = true,
|
||||
|
Loading…
Reference in New Issue
Block a user