added pylsp.
This commit is contained in:
		
							parent
							
								
									e478c5d852
								
							
						
					
					
						commit
						81245ce4ac
					
				
					 1 changed files with 78 additions and 0 deletions
				
			
		| 
						 | 
					@ -374,5 +374,83 @@ require('lazy').setup({
 | 
				
			||||||
        'ellisonleao/gruvbox.nvim',
 | 
					        'ellisonleao/gruvbox.nvim',
 | 
				
			||||||
        lazy = true,
 | 
					        lazy = true,
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
						use { 'nvim-treesitter/nvim-treesitter',
 | 
				
			||||||
 | 
							run = ':TSUpdate',
 | 
				
			||||||
 | 
							config = function()
 | 
				
			||||||
 | 
								require('nvim-treesitter').setup {
 | 
				
			||||||
 | 
									ensure_installed = {
 | 
				
			||||||
 | 
										'c',
 | 
				
			||||||
 | 
										'lua',
 | 
				
			||||||
 | 
										'vim',
 | 
				
			||||||
 | 
										'vimdoc',
 | 
				
			||||||
 | 
										'query',
 | 
				
			||||||
 | 
										'bash',
 | 
				
			||||||
 | 
										'comment',
 | 
				
			||||||
 | 
										'cpp',
 | 
				
			||||||
 | 
										'diff',
 | 
				
			||||||
 | 
										'git_config',
 | 
				
			||||||
 | 
										'git_rebase',
 | 
				
			||||||
 | 
										'gitattributes',
 | 
				
			||||||
 | 
										'gitcommit',
 | 
				
			||||||
 | 
										'gitignore',
 | 
				
			||||||
 | 
										'json',
 | 
				
			||||||
 | 
										'jsonc',
 | 
				
			||||||
 | 
										'latex',
 | 
				
			||||||
 | 
										'make',
 | 
				
			||||||
 | 
										'python',
 | 
				
			||||||
 | 
										'regex',
 | 
				
			||||||
 | 
										'rust',
 | 
				
			||||||
 | 
										'toml',
 | 
				
			||||||
 | 
									},
 | 
				
			||||||
 | 
									auto_install = true,
 | 
				
			||||||
 | 
									highlight = { enable = true },
 | 
				
			||||||
 | 
									indent = { enable = true },
 | 
				
			||||||
 | 
									incremental_selection = { enable = true }
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							end,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						use {
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"williamboman/mason.nvim",
 | 
				
			||||||
 | 
								config = function()
 | 
				
			||||||
 | 
									require("mason").setup({
 | 
				
			||||||
 | 
										ui = {
 | 
				
			||||||
 | 
											icons = {
 | 
				
			||||||
 | 
												package_installed = "✓",
 | 
				
			||||||
 | 
												package_pending = "➜",
 | 
				
			||||||
 | 
												package_uninstalled = "✗"
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
									})
 | 
				
			||||||
 | 
								end
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"williamboman/mason-lspconfig.nvim",
 | 
				
			||||||
 | 
								after = "mason.nvim",
 | 
				
			||||||
 | 
								config = function()
 | 
				
			||||||
 | 
									require("mason-lspconfig").setup({
 | 
				
			||||||
 | 
										ensure_installed = {
 | 
				
			||||||
 | 
											'lua_ls',
 | 
				
			||||||
 | 
											'rust_analyzer',
 | 
				
			||||||
 | 
											'bashls',
 | 
				
			||||||
 | 
					                        'pylsp', -- run PylspInstall pylsp-rope python-lsp-black python-lsp-ruff
 | 
				
			||||||
 | 
					                        'pyright',
 | 
				
			||||||
 | 
											'texlab',
 | 
				
			||||||
 | 
											'clangd',
 | 
				
			||||||
 | 
										},
 | 
				
			||||||
 | 
										automatic_installation = true
 | 
				
			||||||
 | 
									})
 | 
				
			||||||
 | 
								end
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"neovim/nvim-lspconfig",
 | 
				
			||||||
 | 
								after = { "mason-lspconfig.nvim", "rust-tools.nvim" },
 | 
				
			||||||
 | 
								config = function()
 | 
				
			||||||
 | 
									require('LSPconfig')
 | 
				
			||||||
 | 
								end
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							{ 'simrat39/rust-tools.nvim', },
 | 
				
			||||||
 | 
							{ 'mfussenegger/nvim-jdtls', },
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue