This commit is contained in:
Mira Kristipati 2024-05-21 18:21:37 -04:00
parent 7123c851a2
commit ba838cfab2
5 changed files with 37 additions and 10 deletions

10
.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
plugin
#custom
spell
ftplugin
syntax
coc-settings.json
.luarc.json
lazy-lock.json
after
**/.DS_Store

View file

@ -10,9 +10,13 @@ M.ui = {
hl_add = highlights.add,
statusline = {
overriden_modules = function(modules)
modules[10] = vim.o.columns > 140 and "%#StText# [%l,%c]" or ""
end,
order = { "mode", "file", "git", "%=", "lsp_msg", "%=", "diagnostics", "lsp", "cwd", "cursor", "grapple" },
modules = {
cursor = function()
return "%#St_pos_sep#" .. "" .. "%#St_pos_icon# %#St_pos_text# [%l,%c]"
end,
grapple = require("grapple").statusline,
},
},
}

View file

@ -11,6 +11,7 @@ local servers = {
"clangd",
"gopls",
"astro",
"lua_ls",
"docker_compose_language_service",
"ast_grep",
-- "basedpyright",

View file

@ -23,6 +23,14 @@ M.General = function()
map("n", "<Leader>ci", "<cmd>Lspsaga incoming_calls<CR>", { desc = "LSPSaga incoming calls" })
map("n", "<Leader>co", "<cmd>Lspsaga outgoing_calls<CR>", { desc = "LSPSaga outgoing calls" })
map("n", "<C-b>", "<cmd>Lspsaga outline<CR>", { desc = "LSPSaga outline" })
map("n", "<leader>sm", require("grapple").toggle, { desc = "Grapple Toggle" })
map("n", "<leader>sn", function()
require("grapple").cycle_tags "next"
end, { desc = "Grapple cycle next" })
map("n", "<leader>sN", function()
require("grapple").cycle_tags "prev"
end, { desc = "Grapple cycle prev" })
map("n", "<leader>sM", "<cmd>Telescope grapple tags<CR>", { desc = "Grapple View tags" })
end
M.Ufo = function()

View file

@ -41,13 +41,13 @@ return {
},
},
},
-- {
-- "cbochs/grapple.nvim",
-- dependencies = {
-- { "nvim-tree/nvim-web-devicons", lazy = true },
-- },
-- lazy = false,
-- },
{
"cbochs/grapple.nvim",
dependencies = {
{ "nvim-tree/nvim-web-devicons", lazy = true },
},
lazy = false,
},
{
"nvimdev/lspsaga.nvim",
config = function()
@ -119,6 +119,10 @@ return {
{ "junegunn/fzf.vim", lazy = false },
{
"nvim-telescope/telescope.nvim",
config = function()
require("telescope").setup()
require("telescope").load_extension "grapple"
end,
dependencies = { "nvim-lua/plenary.nvim", "junegunn/fzf.vim" },
},