Better HN
topnewbestaskshowjobs
Log inSign up

MistaGobo

5 karma · joined Jan 18, 2020 (6y ago) · 5 submissions

Submissions

comment 1y ago · link · parent

WARNING: Not to be viewed while eating!

comment 2y ago · link · parent

require('lspconfig')['tsserver'].setup{ on_attach = on_attach, ... }

local on_attach = function(client, bufnr) vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts) end

comment 2y ago · link · parent

Renaming variables should be done using an LSP, not find/replace.

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.

comment 3y ago · link · parent

i3wm might be what you're looking for.