local function init() -- command! LogPath :lua print(vim.inspect(vim.lsp.get_log_path())) -------------------- Telescope ----------------------------- map('n', 'ff', 'Telescope find_files') map('n', 'fg', 'Telescope live_grep') map('n', 'fb', 'Telescope buffers') map('n', 'fh', 'Telescope help_tags') map('n', 'ps', [[lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For >")})]]) -------------------- NvimTreeToggle ------------------------ map('n', 'tt', 'NvimTreeToggle') map('n', 'tr', 'NvimTreeRefresh') -------------------- LSP ----------------------------------- map('n', ',', 'lua vim.lsp.diagnostic.goto_prev()') map('n', ';', 'lua vim.lsp.diagnostic.goto_next()') map('n', 'a', 'lua vim.lsp.buf.code_action()') map('n', 'd', 'lua vim.lsp.buf.definition()') map('n', 'f', 'lua vim.lsp.buf.formatting()') map('n', 'h', 'lua vim.lsp.buf.hover()') map('n', 'm', 'lua vim.lsp.buf.rename()') map('n', 'r', 'lua vim.lsp.buf.references()') map('n', 's', 'lua vim.lsp.buf.document_symbol()') -------------------- LAZYGIT ------------------------------- -- Install docs : https://github.com/jesseduffield/lazygit map('n', 'lg', 'LazyGit') -------------------- COMMANDS ------------------------------ cmd 'au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' -- disabled in visual mode end return { init = init }