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