feat(nvim): more modernization

This commit is contained in:
Barrett Ruth 2026-03-01 12:17:16 -05:00
parent 98ea8609fd
commit 8e9d8cd00d
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
16 changed files with 533 additions and 551 deletions

View file

@ -32,8 +32,10 @@ return {
local clients = vim.lsp.get_clients({ buffer = o.buf })
for _, client in ipairs(clients) do
if client:supports_method('textDocument/rename') then
bmap(
{ 'n', 'grn', live_rename.rename },
vim.keymap.set(
'n',
'grn',
live_rename.rename,
{ buffer = o.buf }
)
end
@ -53,8 +55,10 @@ return {
after = function()
require('vtsls').config({
on_attach = function(_, bufnr)
bmap(
{ 'n', 'gD', vim.cmd.VtsExec('goto_source_definition') },
vim.keymap.set(
'n',
'gD',
vim.cmd.VtsExec('goto_source_definition'),
{ buffer = bufnr }
)
end,