Format and fix clangd offset encoding
This commit is contained in:
		| @@ -1,21 +1,12 @@ | ||||
| local config = { | ||||
| 	options = { | ||||
| 		opt = { | ||||
| 			colorcolumn = "80,120", | ||||
| 		}, | ||||
| 		g = { | ||||
| 			inlay_hints_enabled = true, | ||||
| 		}, | ||||
| 	}, | ||||
| 	options = { opt = { colorcolumn = "80,120" }, g = { inlay_hints_enabled = true } }, | ||||
|  | ||||
| 	lsp = { | ||||
| 		config = { | ||||
| 			rust_analyzer = { | ||||
| 				settings = { | ||||
| 					["rust-analyzer"] = { | ||||
| 						cargo = { | ||||
| 							buildScripts = { enable = true }, | ||||
| 						}, | ||||
| 						cargo = { buildScripts = { enable = true } }, | ||||
| 						procMacrto = { enable = true }, | ||||
| 						check = { | ||||
| 							command = "clippy", | ||||
| @@ -24,15 +15,14 @@ local config = { | ||||
| 					}, | ||||
| 				}, | ||||
| 			}, | ||||
| 			clangd = { capabilities = { offsetEncoding = "utf-8" } }, | ||||
| 		}, | ||||
| 	}, | ||||
|  | ||||
| 	-- Add plugins | ||||
| 	plugins = { | ||||
| 		-- Extended file type support | ||||
| 		{ "sheerun/vim-polyglot", lazy = false }, | ||||
|  | ||||
| 		-- Community plugins | ||||
| 		{ "sheerun/vim-polyglot", lazy = false }, -- Community plugins | ||||
| 		"AstroNvim/astrocommunity", | ||||
| 		{ import = "astrocommunity.pack.angular" }, | ||||
| 		{ import = "astrocommunity.pack.ansible" }, | ||||
| @@ -84,7 +74,7 @@ local config = { | ||||
| 		{ import = "astrocommunity.git.git-blame-nvim" }, | ||||
| 		{ import = "astrocommunity.markdown-and-latex.vimtex" }, | ||||
|  | ||||
| 		-- use moden inlay hints: | ||||
| 		-- use modern inlay hints: | ||||
| 		{ | ||||
| 			"p00f/clangd_extensions.nvim", | ||||
| 			optional = true, | ||||
| @@ -93,11 +83,7 @@ local config = { | ||||
| 		{ | ||||
| 			"simrat39/rust-tools.nvim", | ||||
| 			optional = true, | ||||
| 			opts = { | ||||
| 				tools = { | ||||
| 					inlay_hints = { auto = true }, | ||||
| 				}, | ||||
| 			}, | ||||
| 			opts = { tools = { inlay_hints = { auto = true } } }, | ||||
| 		}, | ||||
| 	}, | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user