Compare commits
	
		
			4 Commits
		
	
	
		
			4f0ea77e68
			...
			7877803986
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						7877803986 | |
| 
							
							
								
								 | 
						11bcfa4a45 | |
| 
							
							
								
								 | 
						ca668494cb | |
| 
							
							
								
								 | 
						629551c65f | 
| 
						 | 
					@ -21,21 +21,6 @@ require("mason-lspconfig").setup({
 | 
				
			||||||
	ensure_installed = {},
 | 
						ensure_installed = {},
 | 
				
			||||||
	handlers = {
 | 
						handlers = {
 | 
				
			||||||
		default_setup,
 | 
							default_setup,
 | 
				
			||||||
		-- lua_ls = function()
 | 
					 | 
				
			||||||
		-- 	require("lspconfig").eslint.setup({
 | 
					 | 
				
			||||||
		-- 		capabilities = lsp_capabilities,
 | 
					 | 
				
			||||||
		-- 		args = {
 | 
					 | 
				
			||||||
		-- 			"--no-warn-ignored", -- <-- this is the key argument
 | 
					 | 
				
			||||||
		-- 			"--format",
 | 
					 | 
				
			||||||
		-- 			"json",
 | 
					 | 
				
			||||||
		-- 			"--stdin",
 | 
					 | 
				
			||||||
		-- 			"--stdin-filename",
 | 
					 | 
				
			||||||
		-- 			function()
 | 
					 | 
				
			||||||
		-- 				return vim.api.nvim_buf_get_name(0)
 | 
					 | 
				
			||||||
		-- 			end,
 | 
					 | 
				
			||||||
		-- 		},
 | 
					 | 
				
			||||||
		-- 	})
 | 
					 | 
				
			||||||
		-- end,
 | 
					 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,34 +43,3 @@ cmp.setup({
 | 
				
			||||||
		end,
 | 
							end,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					 | 
				
			||||||
-- local lsps_for_install = { --[[ "eslint", ]]
 | 
					 | 
				
			||||||
-- 	"html",
 | 
					 | 
				
			||||||
-- 	"cssls",
 | 
					 | 
				
			||||||
-- 	"bashls",
 | 
					 | 
				
			||||||
-- 	"grammarly",
 | 
					 | 
				
			||||||
-- }
 | 
					 | 
				
			||||||
-- --make this table 2d to add configs
 | 
					 | 
				
			||||||
-- local mason_lspconfig = require("mason-lspconfig")
 | 
					 | 
				
			||||||
-- mason_lspconfig.setup({
 | 
					 | 
				
			||||||
-- 	ensure_installed = lsps_for_install,
 | 
					 | 
				
			||||||
-- })
 | 
					 | 
				
			||||||
--
 | 
					 | 
				
			||||||
-- local lspconfig = require("lspconfig")
 | 
					 | 
				
			||||||
-- local lsp_capabilities = require("cmp_nvim_lsp").default_capabilities()
 | 
					 | 
				
			||||||
-- for _, lsp in pairs(lsps_for_install) do
 | 
					 | 
				
			||||||
-- 	lspconfig[lsp].setup({
 | 
					 | 
				
			||||||
-- 		capabilities = lsp_capabilities,
 | 
					 | 
				
			||||||
-- 	})
 | 
					 | 
				
			||||||
-- end
 | 
					 | 
				
			||||||
--
 | 
					 | 
				
			||||||
-- lspconfig.lua_ls.setup({
 | 
					 | 
				
			||||||
-- 	capabilities = lsp_capabilities,
 | 
					 | 
				
			||||||
-- 	settings = {
 | 
					 | 
				
			||||||
-- 		Lua = {
 | 
					 | 
				
			||||||
-- 			diagnostics = {
 | 
					 | 
				
			||||||
-- 				globals = { "vim" },
 | 
					 | 
				
			||||||
-- 			},
 | 
					 | 
				
			||||||
-- 		},
 | 
					 | 
				
			||||||
-- 	},
 | 
					 | 
				
			||||||
-- })
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					return {
 | 
				
			||||||
 | 
						"lewis6991/gitsigns.nvim",
 | 
				
			||||||
 | 
						config = function()
 | 
				
			||||||
 | 
							require("gitsigns").setup()
 | 
				
			||||||
 | 
						end,
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -27,20 +27,6 @@ return {
 | 
				
			||||||
				python = { "pylint" },
 | 
									python = { "pylint" },
 | 
				
			||||||
				markdown = { "proselint" },
 | 
									markdown = { "proselint" },
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			--###### ESLINT HACK ######
 | 
					 | 
				
			||||||
			local eslint = lint.linters.eslint_d
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			eslint.args = {
 | 
					 | 
				
			||||||
				"--no-warn-ignored", -- <-- this is the key argument
 | 
					 | 
				
			||||||
				"--format",
 | 
					 | 
				
			||||||
				"json",
 | 
					 | 
				
			||||||
				"--stdin",
 | 
					 | 
				
			||||||
				"--stdin-filename",
 | 
					 | 
				
			||||||
				function()
 | 
					 | 
				
			||||||
					return vim.api.nvim_buf_get_name(0)
 | 
					 | 
				
			||||||
				end,
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			--##### END ESLINT HACK ######
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
			local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
 | 
								local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,5 +9,4 @@ return {
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		"neovim/nvim-lspconfig",
 | 
							"neovim/nvim-lspconfig",
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue