From 88680ceb74754799dde0c2819334ad211365f2b2 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Mon, 18 Sep 2023 21:16:35 -0400 Subject: [PATCH] changes --- plugins/mason.lua | 5 +++-- plugins/user.lua | 42 ++++++++++++++++++++++++++++++++++++------ 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/plugins/mason.lua b/plugins/mason.lua index 5761fe5..079e055 100644 --- a/plugins/mason.lua +++ b/plugins/mason.lua @@ -23,8 +23,9 @@ return { opts = function(_, opts) -- add more things to the ensure_installed table protecting against community packs modifying it opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, { - -- "prettier", - -- "stylua" + "prettier", + "stylua", + "clippy" }) end, }, diff --git a/plugins/user.lua b/plugins/user.lua index ad0756d..4c81a9c 100644 --- a/plugins/user.lua +++ b/plugins/user.lua @@ -4,7 +4,7 @@ return { { "andweeb/presence.nvim", config = function() - require("presence").setup({ + require("presence").setup { auto_update = true, show_time = true, client_id = "242049919999803395", @@ -12,7 +12,7 @@ return { editing_text = "Doing the thing on %s", file_explorer_text = "Scratching my head in %s", git_commit_text = "Signing my soul away", - }) + } end, }, @@ -25,11 +25,41 @@ return { dependencies = { "nvim-lua/plenary.nvim" }, opts = { keywords = { - TODO = {icon = "✔️", color = "info"}, - HACK = {icon = "🔥", color = "warning"}, - WARN = {icon = "⚠️", color = "warning"}, - } + TODO = { icon = "✔️", color = "info" }, + HACK = { icon = "🔥", color = "warning" }, + WARN = { icon = "⚠️", color = "warning" }, + FIXME = { icon = "🔨", color = "danger" }, + }, }, lazy = false, }, + + -- Sticky scroll (context) plugin + { + "nvim-treesitter/nvim-treesitter-context", + config = function() + require("treesitter-context").setup { + enable = true, + max_lines = 5, + zindex = 20, + trim_scope = "outer", + line_numbers = true, + min_window_height = 0, + multiline_threshold = 20, + mode = "topline", + } + end, + }, + + { + "amrbashir/nvim-docs-view", + opt = true, + cmd = { "DocsViewToggle" }, + config = function() + require("docs-view").setup { + position = "bottom", + width = 60, + } + end, + }, }