2 files changed,
16 insertions(+),
6 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2024-05-02 22:37:37 +0300
Parent:
ab4c49b
jump to
| M | lua/plugins/git.lua |
| M | lua/plugins/lsp/attach.lua |
M
lua/plugins/git.lua
@@ -17,6 +17,14 @@ end,
opts = { max_file_length = 1000, current_line_blame = true, + signs = { + add = { text = "" }, + change = { text = "" }, + delete = { text = "" }, + topdelete = { text = "" }, + changedelete = { text = "" }, + untracked = { text = "" }, + }, current_line_blame_opts = { virt_text_pos = "eol", delay = 300,@@ -29,16 +37,20 @@ "TimUntersberger/neogit",
cmd = "Neogit", branch = "nightly", keys = { { "<leader>gg", vim.cmd.Neogit } }, + ---@type NeogitConfig opts = { kind = "vsplit", disable_builtin_notifications = true, disable_commit_confirmation = true, + disable_context_highlighting = true, disable_hint = true, signs = { section = { "", "" }, item = { "", "" }, hunk = { "", "" }, }, + commit_editor = { kind = "split" }, + integrations = { telescope = true }, }, }, }
M
lua/plugins/lsp/attach.lua
@@ -19,7 +19,7 @@ u.map("n", "[D", vim.diagnostic.goto_prev, true)
end ---@param client vim.lsp.Client ----@param bufnr vim.lsp.inlay_hint.enable.Filter +---@param bufnr number function attach.common(client, bufnr) if client.supports_method "textDocument/codeLens" then vim.lsp.codelens.run()@@ -37,13 +37,11 @@ u.map("n", "<leader>lr", vim.lsp.buf.rename, true)
u.map("n", "<leader>ss", "<cmd>Telescope lsp_document_symbols<cr>", true) u.map("n", "<leader>ll", vim.lsp.codelens.run, true) u.map("n", "<leader>li", function() - if - vim.lsp.inlay_hint.is_enabled(bufnr --[[@as number]]) - then - vim.lsp.inlay_hint.enable(false, bufnr) + if vim.lsp.inlay_hint.is_enabled { bufnr = bufnr } then + vim.lsp.inlay_hint.enable(false, { bufnr = bufnr }) vim.print "Inlay hints disabled" else - vim.lsp.inlay_hint.enable(true, bufnr) + vim.lsp.inlay_hint.enable(true, { bufnr = bufnr }) vim.print "Inlay hints enabled" end end, true)