Created
March 30, 2023 07:44
-
-
Save redduck3/36afa7d56f03cb22b09f3bdcb807f79b to your computer and use it in GitHub Desktop.
NeoVIM + LSP + coq + copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vim.cmd('set mouse=nicr') | |
| require('packer').startup(function(use) | |
| use 'wbthomason/packer.nvim' -- Package manager | |
| use 'vim-airline/vim-airline' | |
| use 'tpope/vim-fugitive' | |
| use 'tpope/vim-sensible' | |
| use 'tpope/vim-surround' | |
| use 'tpope/vim-sleuth' | |
| use 'neovim/nvim-lspconfig' -- Configurations for Nvim LSP | |
| use {'ms-jpq/coq_nvim', branch = 'coq', run = 'python3 -m coq deps'} | |
| use {'ms-jpq/coq.artifacts', branch = 'artifacts'} | |
| use {'ms-jpq/coq.thirdparty', branch = '3p' } | |
| use {'ms-jpq/chadtree', branch = 'chad', run = 'python3 -m chadtree deps'} | |
| use 'github/copilot.vim' | |
| use 'Vimjas/vim-python-pep8-indent' | |
| use 'mattn/emmet-vim' | |
| end) | |
| local lspconfig = require('lspconfig') | |
| -- Automatically start coq | |
| vim.g.coq_settings = { auto_start = 'shut-up' } | |
| -- Enable some language servers with the additional completion capabilities offered by coq_nvim | |
| local servers = { 'html', 'jsonls', 'cssls', 'eslint', 'pyright', 'tsserver', 'yamlls' } | |
| for _, lsp in ipairs(servers) do | |
| lspconfig[lsp].setup(require('coq').lsp_ensure_capabilities({ | |
| -- on_attach = my_custom_on_attach, | |
| })) | |
| end | |
| -- Enable Copilot | |
| require("coq_3p") { | |
| { src = "copilot", short_name = "COP", accept_key = "<c-f>" }, | |
| { src = "nvimlua", short_name = "nLUA", conf_only = true }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment