Skip to content

Commit

Permalink
Nvim: LSP plugin
Browse files Browse the repository at this point in the history
Unfortunatelly, the GQL LSP integration with Coc doesn't work well,
thus we gotta use the Native NVIM LSP integration instead.

graphql/graphiql#3649
  • Loading branch information
yuriteixeira committed Jul 15, 2024
1 parent dc08ed9 commit d4d65d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ source ~/.vimrc_plugins
source ~/.vimrc_shortcuts
source ~/.vimrc_colors

luafile ~/.vimrc_lsp

2 changes: 2 additions & 0 deletions .vimrc_lsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require'lspconfig'.graphql.setup{}

1 change: 1 addition & 0 deletions .vimrc_plugins_v3
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Plug 'prettier/vim-prettier' " Pretti

" Auto-completion
Plug 'neoclide/coc.nvim', {'branch': 'release'} " Better auto-completion
Plug 'neovim/nvim-lspconfig' " Fallback when Coc.Nvim doesn't work (eg: GQL)

" Status line
Plug 'nvim-lualine/lualine.nvim'
Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ln -sf "$PWD/.vim" $HOME
ln -sf "$PWD/.vimrc_colors" $HOME
ln -sf "$PWD/.vimrc_settings" $HOME
ln -sf "$PWD/.vimrc_shortcuts" $HOME
ln -sf "$PWD/.vimrc_lsp" $HOME
ln -sf "$PWD/.vimrc_plugins_v3" "$HOME/.vimrc_plugins"
ln -sf "$PWD/.vimrc_plugins_lualine" $HOME
ln -sf "$PWD/.vimrc_plugins_nvim_treesitter" $HOME
Expand Down

0 comments on commit d4d65d2

Please sign in to comment.