arch-spatula / neovim-setup

neovim 설정 저장
0 stars 1 forks source link

method textDocument/codeAction is not supported by any of the servers registered for the current buffer #39

Closed Jake-kim-sang-hyun closed 3 months ago

Jake-kim-sang-hyun commented 3 months ago

https://github.com/neovim/neovim/issues/13508

arch-spatula commented 3 months ago

https://github.com/vuejs/language-tools/issues/3925

vue만 갖고 있는 문제 갖습니다.

arch-spatula commented 3 months ago

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#volar

arch-spatula commented 3 months ago

https://www.reddit.com/r/neovim/comments/1b7f28d/volar_200/

arch-spatula commented 3 months ago

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#vue-support

arch-spatula commented 3 months ago

https://github.com/vuejs/language-tools

여기가 vue LSP 레포

https://github.com/vuejs/language-tools/tree/master/packages/language-server

https://github.com/vuejs/language-tools/tree/master/packages/typescript-plugin

위 2개 링크 참고하기

arch-spatula commented 3 months ago

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#volar

npm install -g @vue/language-server
arch-spatula commented 3 months ago

image

arch-spatula commented 3 months ago
npm install -g @vue/typescript-plugin
arch-spatula commented 3 months ago

npm 글로벌 설치 경로 파악이 필요함

https://github.com/vuejs/language-tools/issues/3925#issuecomment-1987051939

위 설정이 결국 먹힘

https://github.com/williamboman/mason-lspconfig.nvim/issues/371#issuecomment-1988153959

위도 가능

arch-spatula commented 3 months ago
            -- JS & TS
            lspconfig.tsserver.setup({
                init_options = {
                    plugins = {
                        {
                            name = "@vue/typescript-plugin",
                            location = "/global/npm/pakage/dir/lib/@vue/language-server",
                            languages = {
                                "javascript",
                                "typescript",
                                "vue",
                            },
                        },
                    },
                },
                filetypes = {
                    "javascript",
                    "typescript",
                    "vue",
                },
                capabilities = capabilities,
            })
arch-spatula commented 3 months ago

https://github.com/yaegassy/coc-volar

vue 호환성을 확인하기 바랍니다.

arch-spatula commented 3 months ago
:MasonInstall vue-language-server@1.8.27

위 커맨드로 해결하는 것도 현재 전략 중 하나라고 봅니다.