astro-nvim-v3 - distant api
This commit is contained in:
@@ -19,7 +19,6 @@ return {
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
|
||||
{ "<leader>r", ":RunCode<CR>", mode = "n", noremap = true, silent = false, desc = "Run code" },
|
||||
{ "<leader>rf", ":RunFile<CR>", mode = "n", noremap = true, silent = false, desc = "Run file" },
|
||||
{ "<leader>rft", ":RunFile tab<CR>", mode = "n", noremap = true, silent = false, desc = "Run file in new tab" },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Plugins to disable
|
||||
return {
|
||||
{ "nvim-neo-tree/neo-tree.nvim", enabled = true },
|
||||
{ "lukas-reineke/indent-blankline.nvim", enabled = false},
|
||||
{ "lukas-reineke/indent-blankline.nvim", enabled = true},
|
||||
{ "s1n7ax/nvim-window-picker", enabled = false },
|
||||
{ "akinsho/toggleterm.nvim", enabled = false },
|
||||
{ "NvChad/nvim-colorizer.lua", enabled = false },
|
||||
|
||||
21
lua/plugins/distant.lua
Normal file
21
lua/plugins/distant.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
-- if true then return {} end
|
||||
|
||||
return {
|
||||
"chipsenkbeil/distant.nvim",
|
||||
branch = "v0.3",
|
||||
event = "VimEnter",
|
||||
cmd = {
|
||||
"DistantLaunch",
|
||||
"DistantOpen",
|
||||
"DistantConnect",
|
||||
"DistantInstall",
|
||||
"DistantMetadata",
|
||||
"DistantShell",
|
||||
"DistantShell",
|
||||
"DistantSystemInfo",
|
||||
"DistantClientVersion",
|
||||
"DistantSessionInfo",
|
||||
"DistantCopy",
|
||||
},
|
||||
config = function() require("distant"):setup() end,
|
||||
}
|
||||
@@ -31,31 +31,31 @@ return {
|
||||
end,
|
||||
},
|
||||
-- File tagging and navigation
|
||||
{
|
||||
"cbochs/grapple.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
{
|
||||
"AstroNvim/astrocore",
|
||||
opts = function(_, opts)
|
||||
opts.mappings.n["<Leader><Leader>"] = { desc = require("astroui").get_icon("Grapple", 1, true) .. "Grapple" }
|
||||
end,
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
scope = "git_branch",
|
||||
},
|
||||
cmd = { "Grapple" },
|
||||
keys = {
|
||||
{ "<Leader><Leader>a", "<Cmd>Grapple tag<CR>", desc = "Add tag to file" },
|
||||
{ "<Leader><Leader>d", "<Cmd>Grapple untag<CR>", desc = "Delete tag from file" },
|
||||
{ "<Leader><Leader>e", "<Cmd>Grapple toggle_tags<CR>", desc = "Select from tags" },
|
||||
{ "<Leader><Leader>s", "<Cmd>Grapple toggle_scopes<CR>", desc = "Select a project scope" },
|
||||
{ "<Leader><Leader>x", "<Cmd>Grapple reset<CR>", desc = "Clear tags" },
|
||||
{ "<C-e>", "<Cmd>Grapple cycle forward<CR>", desc = "Select next tag" },
|
||||
{ "<C-p>", "<Cmd>Grapple cycle backward<CR>", desc = "Select previous tag" },
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "cbochs/grapple.nvim",
|
||||
-- dependencies = {
|
||||
-- "nvim-lua/plenary.nvim",
|
||||
-- {
|
||||
-- "AstroNvim/astrocore",
|
||||
-- opts = function(_, opts)
|
||||
-- opts.mappings.n["<Leader><Leader>"] = { desc = require("astroui").get_icon("Grapple", 1, true) .. "Grapple" }
|
||||
-- end,
|
||||
-- },
|
||||
-- },
|
||||
-- opts = {
|
||||
-- scope = "git_branch",
|
||||
-- },
|
||||
-- cmd = { "Grapple" },
|
||||
-- keys = {
|
||||
-- { "<Leader><Leader>a", "<Cmd>Grapple tag<CR>", desc = "Add tag to file" },
|
||||
-- { "<Leader><Leader>d", "<Cmd>Grapple untag<CR>", desc = "Delete tag from file" },
|
||||
-- { "<Leader><Leader>e", "<Cmd>Grapple toggle_tags<CR>", desc = "Select from tags" },
|
||||
-- { "<Leader><Leader>s", "<Cmd>Grapple toggle_scopes<CR>", desc = "Select a project scope" },
|
||||
-- { "<Leader><Leader>x", "<Cmd>Grapple reset<CR>", desc = "Clear tags" },
|
||||
-- { "<C-e>", "<Cmd>Grapple cycle forward<CR>", desc = "Select next tag" },
|
||||
-- { "<C-p>", "<Cmd>Grapple cycle backward<CR>", desc = "Select previous tag" },
|
||||
-- },
|
||||
-- },
|
||||
-- Better escape support
|
||||
-- {
|
||||
-- "max397574/better-escape.nvim",
|
||||
@@ -84,14 +84,14 @@ return {
|
||||
delay = 25,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
enable = false,
|
||||
use_treesitter = true,
|
||||
chars = {
|
||||
"│",
|
||||
},
|
||||
},
|
||||
blank = {
|
||||
enable = true,
|
||||
enable = false,
|
||||
chars = {
|
||||
" ",
|
||||
},
|
||||
|
||||
89
lua/plugins/indent-scope.lua
Normal file
89
lua/plugins/indent-scope.lua
Normal file
@@ -0,0 +1,89 @@
|
||||
local ignore_filetypes = {
|
||||
"aerial",
|
||||
"alpha",
|
||||
"dashboard",
|
||||
"help",
|
||||
"lazy",
|
||||
"mason",
|
||||
"neo-tree",
|
||||
"NvimTree",
|
||||
"neogitstatus",
|
||||
"notify",
|
||||
"startify",
|
||||
"toggleterm",
|
||||
"Trouble",
|
||||
}
|
||||
local ignore_buftypes = {
|
||||
"nofile",
|
||||
"prompt",
|
||||
"quickfix",
|
||||
"terminal",
|
||||
}
|
||||
local char = "||"
|
||||
|
||||
|
||||
return {
|
||||
"echasnovski/mini.indentscope",
|
||||
event = "User AstroFile",
|
||||
opts = function()
|
||||
return {
|
||||
options = { try_as_border = true },
|
||||
symbol = require("astrocore").plugin_opts("indent-blankline.nvim").context_char or char,
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
{ "lukas-reineke/indent-blankline.nvim", optional = true, opts = { scope = { enabled = false } } },
|
||||
{
|
||||
"AstroNvim/astrocore",
|
||||
opts = {
|
||||
autocmds = {
|
||||
mini_indentscope = {
|
||||
{
|
||||
event = "FileType",
|
||||
desc = "Disable indentscope for certain filetypes",
|
||||
callback = function(event)
|
||||
if vim.b[event.buf].miniindentscope_disable == nil then
|
||||
local filetype = vim.bo[event.buf].filetype
|
||||
local blankline_opts = require("astrocore").plugin_opts "indent-blankline.nvim"
|
||||
if vim.tbl_contains(blankline_opts.filetype_exclude or ignore_filetypes, filetype) then
|
||||
vim.b[event.buf].miniindentscope_disable = true
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
event = "BufWinEnter",
|
||||
desc = "Disable indentscope for certain buftypes",
|
||||
callback = function(event)
|
||||
if vim.b[event.buf].miniindentscope_disable == nil then
|
||||
local buftype = vim.bo[event.buf].buftype
|
||||
local blankline_opts = require("astrocore").plugin_opts "indent-blankline.nvim"
|
||||
if vim.tbl_contains(blankline_opts.buftype_exclude or ignore_buftypes, buftype) then
|
||||
vim.b[event.buf].miniindentscope_disable = true
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
event = "TermOpen",
|
||||
desc = "Disable indentscope for terminals",
|
||||
callback = function(event)
|
||||
if vim.b[event.buf].miniindentscope_disable == nil then
|
||||
vim.b[event.buf].miniindentscope_disable = true
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- specs = {
|
||||
-- {
|
||||
-- "catppuccin",
|
||||
-- optional = true,
|
||||
-- ---@type CatppuccinOptions
|
||||
-- opts = { integrations = { mini = true } },
|
||||
-- },
|
||||
-- },
|
||||
}
|
||||
Reference in New Issue
Block a user