by MistaGobo · 2y ago · 0 comments
I'd try to avoid using your mouse altogether; because it's faster and for me, avoids neck/shoulder strain.
Also, I'd recommend oil.nvim which is great for doing file exploration and manipulating. You can edit/move filenames naturally in a vim buffer, and then save to apply changes.
For now I got to setting up LSP configs and servers for a few languages but didn't get into using it yet besides getting extra syntax highlighting.
vim.keymap.set('n', 'gr', function()
local clients = vim.lsp.get_clients({ bufnr = 0 })
for _, client in ipairs(clients) do
if client.server_capabilities.renameProvider then
vim.lsp.buf.rename()
return
end
end
end)local on_attach = function(client, bufnr) vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts) end