Skip to content

kitagry/bqls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bqls

BigQuery language server

bqls-mini.mp4

Settings

Login to use BigQuery API

gcloud auth login
gcloud auth application-default login

Neovim

You can use bqls.nvim.

You can set Bigquery Project ID. If you don't specify it, gcloud config get project will be used.

require("lspconfig").bqls.setup({
  settings = {
    project_id = "YOUR_PROJECT_ID",
  },
})

You can change project_id with workspace/didChangeConfiguration.

vim.lsp.get_clients({ name = "bqls" })[1].settings = { project_id="ANOTHER_PROJECT_ID" }

Save Result

In order to save for spreadsheet, you should enable Google Drive API.

  1. Enable Google Drive API and Google Sheets API
  2. gcloud auth application-default login --scopes=https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/drive

Supported Protocol