comparison .chezmoitemplates/init.lua @ 749:77711d88bb3a

chore: remove unused command
author zegervdv <zegervdv@me.com>
date Sat, 14 Jan 2023 11:58:25 +0100
parents 300f45100370
children 240257a1b956
comparison
equal deleted inserted replaced
748:300f45100370 749:77711d88bb3a
1323 options.types = true 1323 options.types = true
1324 options.plugins = true 1324 options.plugins = true
1325 end 1325 end
1326 end, 1326 end,
1327 } 1327 }
1328
1328 lsp.sumneko_lua.setup { 1329 lsp.sumneko_lua.setup {
1329 lspconfig = { 1330 lspconfig = {
1330 cmd = { 'lua-language-server' }, 1331 cmd = { 'lua-language-server' },
1331 on_attach = on_attach, 1332 on_attach = on_attach,
1332 capabilities = capabilities, 1333 capabilities = capabilities,
1338 }, 1339 },
1339 }, 1340 },
1340 }, 1341 },
1341 } 1342 }
1342 1343
1343 local fd_quickfix = function(args)
1344 local grepprg = vim.opt.grepprg
1345 local grepformat = vim.opt.grepformat
1346
1347 vim.opt.grepprg = 'fd'
1348 vim.opt.grepformat = '%f'
1349 vim.cmd.execute('"silent! grep! ' .. args.args .. '"')
1350 vim.cmd.copen()
1351
1352 vim.opt.grepprg = grepprg
1353 vim.opt.grepformat = grepformat
1354 end
1355 vim.api.nvim_create_user_command('Cfd', fd_quickfix, { nargs = '+', complete = 'file' })
1356
1357 vim.diagnostic.config { 1344 vim.diagnostic.config {
1358 underline = true, 1345 underline = true,
1359 update_in_insert = false, 1346 update_in_insert = false,
1360 virtual_text = { severity = { min = vim.diagnostic.severity.WARN }, source = 'always' }, 1347 virtual_text = { severity = { min = vim.diagnostic.severity.WARN }, source = 'always' },
1361 severity_sort = true, 1348 severity_sort = true,