diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 8900be9..9deb399 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -18,22 +18,19 @@ require("lazy").setup({ require("core.options") options = { noremap = true } -map('n', 'ff', ':Telescope find_files', options) -map('n', 'fg', ':Telescope git_files', options) -map('n', 'fc', ':Telescope git_commits', options) -map('n', 'fC', ':Telescope git_bcommits', options) -map('n', 'fl', ':Telescope live_grep', options) -map('n', 'fh', ':Telescope help_tags', options) -map('n', '', ':Telescope buffers', options) -map('n', 'nv', ':Telescope find_files cwd=~/.config/nvim', options) -map('n', 'nc', ':Telescope find_files cwd=~/.config', options) +map('n', 'ff', ':Telescope find_files', options) +map('n', 'fg', ':Telescope git_files', options) +map('n', 'fc', ':Telescope git_commits', options) +map('n', 'fl', ':Telescope live_grep', options) +map('n', '', ':Telescope buffers', options) +map('n', 't', ':TagbarToggle', options) +map('n', 'nv', ':Telescope find_files cwd=~/.config/nvim', options) +map('n', 'nc', ':Telescope find_files cwd=~/.config', options) -map('n', 'gd', ':Telescope lsp_definitions', options) -map('n', 'gr', ':Telescope lsp_references', options) -map('n', 'gs', ':Telescope lsp_workspace_symbols', options) -map('n', 'gS', ':Telescope lsp_dynamic_workspace_symbols', options) - -map('n', 'h', ':nohlsearch', options) +map('n', 'gd', ':Telescope lsp_definitions', options) +map('n', 'gr', ':Telescope lsp_references', options) +map('n', 'gs', ':Telescope lsp_workspace_symbols', options) +map('n', 'gS', ':Telescope lsp_dynamic_workspace_symbols', options) -------------------------------------------------- -- Telescope @@ -113,17 +110,3 @@ cmp.setup({ }, mapping = cmp.mapping.preset.insert({}), }) - --------------------------------------------------- --- Aerial --------------------------------------------------- -require("aerial").setup({ - -- optionally use on_attach to set keymaps when aerial has attached to a buffer - on_attach = function(bufnr) - -- Jump forwards/backwards with '{' and '}' - --vim.keymap.set("n", "{", "AerialPrev", { buffer = bufnr }) - --vim.keymap.set("n", "}", "AerialNext", { buffer = bufnr }) - end, -}) --- You probably also want to set a keymap to toggle aerial -vim.keymap.set("n", "a", "Telescope aerial") diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index 3a936dc..435bedb 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -5,7 +5,7 @@ return { local configs = require("nvim-treesitter.configs") configs.setup({ - ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html", "php", "css" }, + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" }, sync_install = false, highlight = { enable = true }, indent = { enable = true },