Replies: 3 comments
-
I also tried this minimal config: if has('vim_starting')
set encoding=utf-8
endif
scriptencoding utf-8
if &compatible
set nocompatible
endif
let s:plug_dir = expand('/tmp/plugged/vim-plug')
if !filereadable(s:plug_dir .. '/plug.vim')
execute printf('!curl -fLo %s/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim', s:plug_dir)
end
execute 'set runtimepath+=' . s:plug_dir
call plug#begin(s:plug_dir)
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/vim-vsnip'
Plug 'neovim/nvim-lspconfig'
call plug#end()
PlugInstall | quit
" Setup global configuration. More on configuration below.
lua << EOF
local cmp = require "cmp"
cmp.setup {
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
mapping = {
['<CR>'] = cmp.mapping.confirm({ select = true }),
['<C-h>'] = function()
cmp.complete()
end,
},
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "buffer" },
}),
}
EOF
lua << EOF
local capabilities = require('cmp_nvim_lsp').default_capabilities()
require'lspconfig'.pyright.setup {
capabilities = capabilities,
}
EOF
|
Beta Was this translation helpful? Give feedback.
0 replies
-
My setup: WSL2 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ohhhhh boy I can't believe this .. it seems the issue was my packer_compiled.lua .. it messed up all lang / parsers / etc .. but, all good now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone made it work under WSL?
My setup was working fine on both Macs, Linux PC and now I'm setting up a WSL2 environment, I just can't make it work.
This WSL is version 2 (latest), runs Ubuntu 22.04.1 LTS.
Here some notes:
Beta Was this translation helpful? Give feedback.
All reactions