require('my/plugins') require('which-key').setup({}) local map = require('my.functions').map local telescope = require('telescope') local t_actions = require('telescope.actions') telescope.load_extension('projects') require('telescope').setup { mappings = { i = { [""] = t_actions.which_key, }, n = { ["?"] = t_actions.which_key, } }, file_ignore_patterns = { '^\\.git' } } local t_builtin = require('telescope.builtin') local my = require('my.functions') map('n', 'tb', t_builtin.buffers, 'Buffers') map('n', 'tf', function() t_builtin.find_files({ cwd = my.get_project_root() }) end, 'Files') map('n', 'tF', t_builtin.find_files, 'Files in cw') map('n', 'to', t_builtin.oldfiles, 'Recently opened files') map('n', 'tg', function() t_builtin.live_grep({ cwd = my.get_project_root() }) end, 'Live-grep') map('n', 'tm', t_builtin.man_pages, 'Man pages') map('n', 'tr', t_builtin.registers, 'Registers') map('n', 'tp', telescope.extensions.projects.projects, 'Projects') map('n', 'gh', t_builtin.git_bcommits, 'History of this file') local nerdfont_installed = require('my.functions').nerdfont_installed() require("nvim-tree").setup({ filters = { dotfiles = false, custom = { '^\\.git' } }, sync_root_with_cwd = true, respect_buf_cwd = true, update_focused_file = { enable = true, update_root = true }, renderer = { icons = { show = { file = nerdfont_installed, folder = nerdfont_installed, folder_arrow = nerdfont_installed, git = nerdfont_installed } } } }) map('n', '', require("nvim-tree.api").tree.toggle, 'Open nvim-tree') map('i', '', require("nvim-tree.api").tree.toggle, 'Open nvim-tree') vim.o.showmode = false require('lualine').setup({ options = { icons_enabled = nerdfont_installed, component_separators = {}, section_separators = {}, extensions = {} }, sections = { lualine_a = { 'mode' }, lualine_b = { { 'branch', icons_enabled = true }, { 'require("my.functions").lsp_status()', padding = 0 }, 'diagnostics' }, lualine_c = { { 'filename', path = 1 } }, lualine_x = { 'filetype' }, lualine_y = { 'progress' }, lualine_z = { 'location', { '"🍄"', padding = 0 } } }, })