From 098f4258f19b0aae535f8bf9529a442cb5bb55cf Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sat, 12 Mar 2022 07:07:11 +0100 Subject: some local updates --- after/plugin/dbui.lua | 3 +++ lua/alpha/lsp.lua | 2 +- lua/alpha/telescope/init.lua | 4 ++++ lua/alpha/telescope/mappings.lua | 1 + plugin/packer_compiled.lua | 10 +++++----- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/after/plugin/dbui.lua b/after/plugin/dbui.lua index 6b8a192..eaa141c 100644 --- a/after/plugin/dbui.lua +++ b/after/plugin/dbui.lua @@ -6,6 +6,9 @@ vim.g.db_ui_table_helpers = { mysql = { Count = "select count(1) from {optional_schema}{table}", Explain = "EXPLAIN {last_query}" + }, + sqlite = { + Describe = "PRAGMA table_info({table})" } } diff --git a/lua/alpha/lsp.lua b/lua/alpha/lsp.lua index aa06eb3..bd6b449 100644 --- a/lua/alpha/lsp.lua +++ b/lua/alpha/lsp.lua @@ -44,7 +44,7 @@ lsp_installer.on_server_ready(function(server) -- (optional) Customize the options passed to the server if server.name == "emmet_ls" then - opts.filetypes = {"html", "css", "blade"} + opts.filetypes = {"html", "css", "blade", "typescriptreact"} end opts.on_attach = on_attach diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua index 9092425..3752560 100644 --- a/lua/alpha/telescope/init.lua +++ b/lua/alpha/telescope/init.lua @@ -76,6 +76,10 @@ function M.laravel () return require("telescope").extensions.laravel.laravel() end +function M.worktree () + return require('telescope').extensions.git_worktree.git_worktrees() +end + function M.file_browser () local opts diff --git a/lua/alpha/telescope/mappings.lua b/lua/alpha/telescope/mappings.lua index 9acf5a6..42381cd 100644 --- a/lua/alpha/telescope/mappings.lua +++ b/lua/alpha/telescope/mappings.lua @@ -26,6 +26,7 @@ vim.api.nvim_set_keymap("c", "", "(TelescopeFuzzyCommandSearch)" map_tele("pp", "project_files") map_tele("gc", "branches") +map_tele("gt", "worktree") map_tele("pw", "grep_word") map_tele("ps", "grep_string") map_tele("pf", "projectionist") diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index 86d28c3..4f4b7f5 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -25,7 +25,7 @@ local no_errors, error_msg = pcall(function() else time = function(chunk, start) end end - + local function save_profiles(threshold) local sorted_times = {} for chunk_name, time_taken in pairs(profile_info) do @@ -434,14 +434,14 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) --- Config for: nvim-colorizer.lua -time([[Config for nvim-colorizer.lua]], true) -try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14colorizer\frequire\0", "config", "nvim-colorizer.lua") -time([[Config for nvim-colorizer.lua]], false) -- Config for: git-worktree.nvim time([[Config for git-worktree.nvim]], true) try_loadstring("\27LJ\2\n>\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\17git-worktree\frequire\0", "config", "git-worktree.nvim") time([[Config for git-worktree.nvim]], false) +-- Config for: nvim-colorizer.lua +time([[Config for nvim-colorizer.lua]], true) +try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14colorizer\frequire\0", "config", "nvim-colorizer.lua") +time([[Config for nvim-colorizer.lua]], false) -- Config for: nvim-projectconfig time([[Config for nvim-projectconfig]], true) try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23nvim-projectconfig\frequire\0", "config", "nvim-projectconfig") -- cgit v1.2.3