aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-11-20 17:20:11 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-11-20 17:20:11 +0100
commit61c99e945e43794d3b0be59b9c0cfa7aa1655540 (patch)
tree93c3703883f554f0618be4ada6c3264686ef54b7
parent86c78b727294f7ab10e9521140a899ed4a9a166f (diff)
downloadnvim-conf-61c99e945e43794d3b0be59b9c0cfa7aa1655540.tar.gz
nvim-conf-61c99e945e43794d3b0be59b9c0cfa7aa1655540.zip
small changes
-rw-r--r--after/plugin/lsp.lua36
-rw-r--r--lua/alpha/dap.lua2
-rw-r--r--lua/alpha/telescope/init.lua25
3 files changed, 20 insertions, 43 deletions
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua
index d6ace51..2d21311 100644
--- a/after/plugin/lsp.lua
+++ b/after/plugin/lsp.lua
@@ -81,7 +81,7 @@ vim.diagnostic.config({
virtual_text = false,
})
-local signs = { Error = "⛔", Warn = "⚠️", Hint = "💡", Info = "ℹ️" }
+local signs = { Error = "", Warn = "", Hint = "", Info = "" }
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
@@ -183,20 +183,20 @@ lspconfig["sumneko_lua"].setup({
},
})
-configs.blade = {
- default_config = {
- cmd = { "laravel-dev-tools", "lsp" },
- filetypes = { "blade" },
- root_dir = function(fname)
- return lspconfig.util.find_git_ancestor(fname)
- end,
- settings = {},
- },
-}
--- Set it up
-lspconfig.blade.setup({
- -- Capabilities is specific to my setup.
- capabilities = capabilities,
- on_attach = on_attach,
- flags = lsp_flags,
-})
+-- configs.blade = {
+-- default_config = {
+-- cmd = { "laravel-dev-tools", "lsp" },
+-- filetypes = { "blade" },
+-- root_dir = function(fname)
+-- return lspconfig.util.find_git_ancestor(fname)
+-- end,
+-- settings = {},
+-- },
+-- }
+-- -- Set it up
+-- lspconfig.blade.setup({
+-- -- Capabilities is specific to my setup.
+-- capabilities = capabilities,
+-- on_attach = on_attach,
+-- flags = lsp_flags,
+-- })
diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua
index 5511066..8e747db 100644
--- a/lua/alpha/dap.lua
+++ b/lua/alpha/dap.lua
@@ -31,7 +31,7 @@ dapui.setup({
dap_go.setup()
vim.fn.sign_define("DapBreakpoint", { text = "🛑", texthl = "", linehl = "", numhl = "" })
-vim.fn.sign_define("DapStopped", { text = "➡️", texthl = "", linehl = "", numhl = "" })
+vim.fn.sign_define("DapStopped", { text = "▶", texthl = "", linehl = "", numhl = "" })
vim.fn.sign_define("DapBreakpointRejected", { text = "🚫", texthl = "", linehl = "", numhl = "" })
vim.fn.sign_define("DapBreakpointCondition", { text = "❓", texthl = "", linehl = "", numhl = "" })
vim.fn.sign_define("DapLogPoint", { text = "💬", texthl = "", linehl = "", numhl = "" })
diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua
index 67988ea..7337322 100644
--- a/lua/alpha/telescope/init.lua
+++ b/lua/alpha/telescope/init.lua
@@ -122,30 +122,7 @@ function M.file_browser(opts)
prompt_position = "top",
},
- attach_mappings = function(prompt_bufnr, map)
- local current_picker = action_state.get_current_picker(prompt_bufnr)
-
- local modify_cwd = function(new_cwd)
- local finder = current_picker.finder
-
- finder.path = new_cwd
- finder.files = true
- current_picker:refresh(false, { reset_prompt = true })
- end
-
- map("n", "-", function()
- modify_cwd(current_picker.cwd .. "/..")
- end)
-
- map("i", "~", function()
- modify_cwd(vim.fn.expand("~"))
- end)
-
- map("n", "yy", function()
- local entry = action_state.get_selected_entry()
- vim.fn.setreg("+", entry.value)
- end)
-
+ attach_mappings = function(_, map)
map("i", "<c-y>", fb_actions.create)
return true