i use arch btw
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add null-ls

+30 -22
+30 -22
nvim/.config/nvim/lua/plugins.lua
··· 118 118 highlight = { 119 119 enable = true, 120 120 }, 121 - indent = { 122 - enable = true, 123 - }, 121 + -- indent = { 122 + -- enable = true, 123 + -- }, 124 124 } 125 125 end, 126 126 } ··· 250 250 after = { 'coq_nvim', 'neodev.nvim', 'mason.nvim' }, 251 251 config = function() 252 252 local lsp_opts = { 253 - sumneko_lua = { 254 - settings = { 255 - Lua = { 256 - format = { 257 - enable = true, 258 - }, 259 - workspace = { 260 - library = { 261 - '${3rd}/luassert/library', 262 - }, 253 + settings = { 254 + Lua = { 255 + format = { 256 + enable = true, 257 + }, 258 + workspace = { 259 + library = { 260 + '${3rd}/luassert/library', 263 261 }, 264 262 }, 265 263 }, 266 - }, 267 - jsonls = { 268 - settings = { 269 - json = { 270 - schemas = require('schemastore').json.schemas(), 271 - validate = { enable = true }, 272 - }, 264 + json = { 265 + schemas = require('schemastore').json.schemas(), 266 + validate = { enable = true }, 273 267 }, 274 268 }, 275 269 } ··· 277 271 require('mason-lspconfig').setup() 278 272 require('mason-lspconfig').setup_handlers { 279 273 function(server_name) 280 - require('lspconfig')[server_name].setup(coq.lsp_ensure_capabilities(lsp_opts[server_name] or {})) 274 + require('lspconfig')[server_name].setup(coq.lsp_ensure_capabilities(lsp_opts)) 281 275 end, 282 276 } 283 277 end, ··· 300 294 dap.adapters.cppdbg = { 301 295 id = 'cppdbg', 302 296 type = 'executable', 303 - command = '/Users/bvan-den/.local/share/nvim//mason/packages/cpptools/extension/debugAdapters/bin/OpenDebugAD7', 297 + command = os.getenv('HOME') .. 298 + '/.local/share/nvim/mason/packages/cpptools/extension/debugAdapters/bin/OpenDebugAD7', 304 299 } 305 300 306 301 dap.configurations.c = { ··· 461 456 'theHamsta/nvim-dap-virtual-text', 462 457 config = function() 463 458 require('nvim-dap-virtual-text').setup() 459 + end, 460 + } 461 + 462 + use { 463 + 'jose-elias-alvarez/null-ls.nvim', 464 + requires = { 'nvim-lua/plenary.nvim' }, 465 + config = function() 466 + local null_ls = require('null-ls') 467 + null_ls.setup({ 468 + sources = { 469 + null_ls.builtins.formatting.prettierd, 470 + }, 471 + }) 464 472 end, 465 473 } 466 474