Giter Site home page Giter Site logo

Comments (8)

janneliukkonen avatar janneliukkonen commented on July 18, 2024

Check whether you have two sqls LSP servers active same time.

from sqls.

cs-clarence avatar cs-clarence commented on July 18, 2024

Check whether you have two sqls LSP servers active same time.

I only have sqls for sql files

from sqls.

guilty-p01nt3r avatar guilty-p01nt3r commented on July 18, 2024

Same Problem here:

NVIM v0.8.0-1210-gd367ed9b2
Build type: Release
LuaJIT 2.1.0-beta3
sqls version: 0.2.22

The only Langauge Server Attached to the session are copilot and sqls:
image

from sqls.

CiaronHowell avatar CiaronHowell commented on July 18, 2024

Running into the same issue:
image

After writing:
image

Output of LspInfo:
image

from sqls.

AndrewWinterman avatar AndrewWinterman commented on July 18, 2024

just ran into same issue

from sqls.

AWinterman avatar AWinterman commented on July 18, 2024

I have a hunch the nvim plugin is allowing the document formatting params to be their defaults, meaning InsertSpaces is false here:

type FormattingOptions struct {
	TabSize                float64 `json:"tabSize"`
	InsertSpaces           bool    `json:"insertSpaces"`
	TrimTrailingWhitespace bool    `json:"trimTrailingWhitespace,omitempty"`
	InsertFinalNewline     bool    `json:"insertFinalNewline,omitempty"`
	TrimFinalNewlines      bool    `json:"trimFinalNewlines,omitempty"`
}

from sqls.

AWinterman avatar AWinterman commented on July 18, 2024

okay, this was actually quite silly, i had no conenctions configured because i thought the docs for the neovim plugin that wraps the underlying lsp plugin were all i needed to do.

from sqls.

gipo355 avatar gipo355 commented on July 18, 2024

same happening to me, breaking all queries with auto format

from sqls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.