nanotee / sqls.nvim

Neovim plugin for sqls that leverages the built-in LSP client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: running query under cursor

sigzegv opened this issue · comments

It mostly feels convenient to have multiple queries on the same file, but having to visually select a query to run just one is a pain. It would be more convenient to just have to execute the query under cursor with a new command like "SqlsExecuteQueryCursor".

@sigzegv, I use this:

nnoremap <silent> <Leader>qe :<C-U>silent! '{,'}SqlsExecuteQuery<CR>