update
This commit is contained in:
		
							parent
							
								
									8accf039e7
								
							
						
					
					
						commit
						f3b85b4c1e
					
				
							
								
								
									
										1
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										1
									
								
								init.lua
								
								
								
								
							|  | @ -148,6 +148,7 @@ vim.opt.inccommand = "split" | |||
| 
 | ||||
| -- Show which line your cursor is on | ||||
| vim.opt.cursorline = true | ||||
| vim.opt.guicursor = "" | ||||
| 
 | ||||
| -- Minimal number of screen lines to keep above and below the cursor. | ||||
| vim.opt.scrolloff = 10 | ||||
|  |  | |||
|  | @ -65,7 +65,7 @@ return { -- Autocompletion | |||
|         -- Accept ([y]es) the completion. | ||||
|         --  This will auto-import if your LSP supports it. | ||||
|         --  This will expand snippets if the LSP sent a snippet. | ||||
|         ["<C-y>"] = cmp.mapping.confirm({ select = true }), | ||||
|         ["<Tab>"] = cmp.mapping.confirm({ select = true }), | ||||
| 
 | ||||
|         -- If you prefer more traditional completion keymaps, | ||||
|         -- you can uncomment the following lines | ||||
|  |  | |||
|  | @ -1,12 +1,13 @@ | |||
| return { | ||||
| 
 | ||||
|   { -- Linting | ||||
|     'mfussenegger/nvim-lint', | ||||
|     event = { 'BufReadPre', 'BufNewFile' }, | ||||
|     "mfussenegger/nvim-lint", | ||||
|     event = { "BufReadPre", "BufNewFile" }, | ||||
|     config = function() | ||||
|       local lint = require 'lint' | ||||
|       local lint = require("lint") | ||||
|       lint.linters_by_ft = { | ||||
|         markdown = { 'markdownlint' }, | ||||
|         markdown = { "markdownlint" }, | ||||
|         typescript = { "eslint_d" }, | ||||
|       } | ||||
| 
 | ||||
|       -- To allow other plugins to add linters to require('lint').linters_by_ft, | ||||
|  | @ -43,11 +44,11 @@ return { | |||
| 
 | ||||
|       -- Create autocommand which carries out the actual linting | ||||
|       -- on the specified events. | ||||
|       local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true }) | ||||
|       vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, { | ||||
|       local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true }) | ||||
|       vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, { | ||||
|         group = lint_augroup, | ||||
|         callback = function() | ||||
|           require('lint').try_lint() | ||||
|           require("lint").try_lint() | ||||
|         end, | ||||
|       }) | ||||
|     end, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue