This commit is contained in:
sankalp committed 2024-01-04 15:42:50 +05:45
1 parent 21c52bc914
commit ec1f8204dd
26 files changed
+457 -818

No files matched your search

@@ -0,0 +1,35 @@
---@type string
local xdg_config = vim.env.XDG_CONFIG_HOME or vim.env.HOME .. "/.config"
---@param path string
local function have(path)
return vim.loop.fs_stat(xdg_config .. "/" .. path) ~= nil
end
return {
{
import = "lazyvim.plugins.extras.util.dot",
},
{
"luckasRanarison/tree-sitter-hypr",
enabled = false,
},
{
"luckasRanarison/tree-sitter-hyprlang",
dependencies = {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if have("hypr") then
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "hyprlang" })
end
end
end,
},
enabled = function()
return have("hypr")
end,
event = "BufRead */hypr/*.conf",
build = ":TSUpdate hyprlang",
},
}
@@ -37,7 +37,7 @@ vim.api.nvim_create_autocmd("User", {
vim.keymap.set("n", "<leader>/", [[<cmd>call VSCodeNotify('workbench.action.findInFiles')<cr>]])
-- open symbol
vim.keymap.set("n", "<leader>ss", [[<cmd>call VSCodeNotify('workbench.action.gotoSymbol')<cr>]])
-- view problem
-- view problems
vim.keymap.set("n", "<leader>xx", [[<cmd>call VSCodeNotify('workbench.actions.view.problems')<cr>]])
-- open file explorer in left sidebar
vim.keymap.set("n", "<leader>e", [[<cmd>call VSCodeNotify('workbench.view.explorer')<cr>]])